Switch to unified view

a b/functions/@eegobj/eegobj.m
1
function this = eegobj(EEG);
2
3
    if nargin == 1
4
        if isa(EEG, 'eegobj')
5
            this = EEG;
6
            return;
7
        end
8
        for index = 1:length(EEG)
9
            TMP(index).EEG = EEG(index);
10
        end
11
    else
12
        TMP.EEG = eeg_emptyset;
13
    end
14
    this = class(TMP, 'eegobj');