<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="color:rgb(51,51,153)"><div style="color:rgb(51,51,153);display:inline"><br>H​</div>ello Olav, this is <div style="color:rgb(51,51,153);display:inline"><div class="gmail_default" style="color:rgb(51,51,153);display:inline">​s</div></div>hould be<div style="color:rgb(51,51,153);display:inline"> ​</div>easy to fix. S<div class="gmail_default" style="color:rgb(51,51,153);display:inline">​ome notes below. Best wishes.</div></div></div></blockquote></div></div></div></blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)"><div style="color:rgb(51,51,153);display:inline">​​</div>******************************<wbr>************************</div><div style="color:rgb(51,51,153)">1. try <div class="gmail_default" style="color:rgb(51,51,153);display:inline">​your basic steps including component removal</div> through the eeglab GUI only<div class="gmail_default" style="color:rgb(51,51,153);display:inline">​ ​</div></div><div style="color:rgb(51,51,153)">2. Then use the eegh command to see all the commands that eeglab ran.</div><div style="color:rgb(51,51,153)">3. Then mimic the eegh output in your script.</div></div></blockquote></span><div><div style="color:rgb(51,51,153);display:inline">​[I've provided <div class="gmail_default" style="color:rgb(51,51,153);display:inline">​an</div> example of eegh output that I got after I loaded a file with ICA, and removed components 1 and 2. </div></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="color:rgb(51,51,153)">​<div style="color:rgb(51,51,153);display:inline">​</div><div style="display:inline">​</div>******************************<wbr>************************<br></div></div></blockquote><div style="color:rgb(51,51,153)">example eegh output below </div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)">EEG = pop_loadset('filename','NAMEOF<wbr>FILE.set','filepath','E:\<wbr>NameofDirectorywithFile\'); %loads dataset</div><div style="color:rgb(51,51,153)">[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, 0 ); %updates EEG structures</div><div style="color:rgb(51,51,153)">EEG = eeg_checkset( EEG ); %checks EEG structures</div><div style="color:rgb(51,51,153)">EEG = pop_subcomp( EEG, [1  2], 0); %removes specific components</div><div style="color:rgb(51,51,153)">[ALLEEG EEG CURRENTSET] = pop_newset(ALLEEG, EEG, 1,'overwrite','on','gui','off'<wbr>); ​%updates/overwrites EEG strucures</div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)"><div style="display:inline;color:rgb(51,51,153)" class="gmail_default">​​</div>******************************<wbr>************************</div><div style="color:rgb(51,51,153)"><span class="gmail-"><div><div style="display:inline">​</div>you can also type</div><div>doc <span style="font-size:12.8px;color:rgb(34,34,34)">pop_subcomp</span></div><div>or help <span style="font-size:12.8px;color:rgb(34,34,34)">pop_subcomp</span></div></span><div><span style="font-size:12.8px;color:rgb(34,34,34)">and review information about  formatting of commands for that function.</span></div><div><span style="font-size:12.8px;color:rgb(34,34,34)"><br></span></div></div></div></div></div></blockquote><div><div class="gmail_default" style="color:rgb(51,51,153);display:inline">​</div><div class="gmail_default" style="color:rgb(51,51,153);display:inline">​</div></div><div><span style="color:rgb(51,51,153)">******************************</span><wbr style="color:rgb(51,51,153)"><span style="color:rgb(51,51,153)">************************</span><div class="gmail_default" style="color:rgb(51,51,153);display:inline">​</div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div style="color:rgb(51,51,153)"><div><span style="font-size:12.8px;color:rgb(34,34,34)"></span></div><div><span style="font-size:12.8px;color:rgb(34,34,34)"><div class="gmail_default" style="color:rgb(51,51,153);display:inline">​</div></span><div class="gmail_default" style="display:inline">​If </div>you haven't had a chance to yet, it's best to run through the eeglab tutorial with eeglab tutorial files, review eegh after tutorial processing steps, and review the tutorials on eeglab scripting.​ See also Makoto's personal eeglab pipeline recommendation page for a wide range of useful hints. All these resources are googlable.</div><div><span style="font-size:12.8px;color:rgb(34,34,34)"><br></span></div><div><br></div></div></div></div></div></blockquote></div></div></div>