[Eeglablist] Copying dipfit info
Tarik S Bel-Bahar
tarikbelbahar at gmail.com
Thu Aug 27 19:16:34 PDT 2015
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.
EEG2=EEG; %copy the total current EEG structure
%load the dataset that will receive the dipfit information, which should
have the same number of ICs
%and channels as the original dataset with dipfit info
EEG.dipfit = EEG2.dipfit; %transfer dipfit info to current dataset .dipfit
field
eeglab(checkset); eeglab redraw; % check eeglab is happy
%plot dipoles
On Wed, Aug 26, 2015 at 5:06 PM, Tarik S Bel-Bahar <tarikbelbahar at gmail.com>
wrote:
> Greetings eeglabers,
>
> Any thoughts here are appreciated.
>
> Does anyone know the easiest way to copy the dipfit information from one
> file to another,
> assuming the other file has the same number of channels, and comes from
> the same session and person ?
>
> 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.
>
> 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.
>
> EEG.dipfit.hdmfile = monkey666.dipfit.hdmfile;
> EEG.dipfit.mrifile = monkey666.dipfit.mrifile;
> EEG.dipfit.chanfile = monkey666.dipfit.chanfile;
> EEG.dipfit.chansel = monkey666.dipfit.chansel;
> EEG.dipfit.coordformat = monkey666.dipfit.coordformat;
> EEG.dipfit.coord_transform = monkey666.dipfit.coord_transform;
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20150827/33e52e4a/attachment.html>
More information about the eeglablist
mailing list