<div dir="ltr"><div class="gmail_default" style=""><font color="#333399">Greetings, just to followup, I found an answer on my own, easy copying of the EEG dipifit (below) seems to work for transferring dipfit info between eeglab datasets. Cheers.</font></div><div class="gmail_default" style=""><font color="#333399"><br></font></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><font color="#333399">EEG2=EEG; %copy the total current EEG structure </font></div><div class="gmail_default" style=""><font color="#333399"><br></font></div><div class="gmail_default" style=""><font color="#333399">%load the dataset that will receive the dipfit information, which should have the same number of ICs </font></div><div class="gmail_default" style=""><font color="#333399">%and channels as the original dataset with dipfit info</font></div><div class="gmail_default" style=""><font color="#333399"><br></font></div><div class="gmail_default" style=""><font color="#333399">EEG.dipfit = EEG2.dipfit; %transfer dipfit info to current dataset .dipfit field</font><br></div><div class="gmail_default" style=""><font color="#333399"><br></font></div><div class="gmail_default" style=""><font color="#333399">eeglab(checkset); eeglab redraw; % check eeglab is happy<br></font></div><div class="gmail_default" style=""><font color="#333399"><br></font></div><div class="gmail_default" style=""><font color="#333399">%plot dipoles </font></div><div class="gmail_default" style=""><font color="#333399"><br></font></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 26, 2015 at 5:06 PM, Tarik S Bel-Bahar <span dir="ltr"><<a href="mailto:tarikbelbahar@gmail.com" target="_blank">tarikbelbahar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="color:rgb(51,51,153)">Greetings eeglabers,</div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)">Any thoughts here are appreciated.</div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)">Does anyone know the easiest way to copy the dipfit information from one file to another,</div><div style="color:rgb(51,51,153)">assuming the other file has the same number of channels, and comes from the same session and person ?</div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)">I tried something like that, but then the dipole viewer does not work for the new file to which the dipfit info is transferred. The pop_dipfit code seems to be looking a "sources" field that I cannot find in the original file which has a working set of dipoles from dipfit.<br></div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)">my simple code looks like this, when I try to "transfer over" dipfit info into a new file that I have just loaded, and having saved the working dipfit info from another file in monkey666.</div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)"><div>EEG.dipfit.hdmfile = monkey666.dipfit.hdmfile;</div><div>EEG.dipfit.mrifile = monkey666.dipfit.mrifile;</div><div>EEG.dipfit.chanfile = monkey666.dipfit.chanfile;</div><div>EEG.dipfit.chansel = monkey666.dipfit.chansel;</div><div>EEG.dipfit.coordformat = monkey666.dipfit.coordformat;</div><div>EEG.dipfit.coord_transform = monkey666.dipfit.coord_transform;</div></div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)"><br></div></div>
</blockquote></div><br></div></div>