Thaks for your help. It was very useful.<br><br>I did some research on it so I can summurize it: you can use dipolefiitting function to find source and visualise it using dipplot (from EEGLAB). The only thing you have to do is to implement assumption that head radius is 85mm (dippot assummes that). No transformation is required - localization is the same as using headmodelplot and plot3 functions (suggested by Vladimir).<br>
<br>Note that dipplot uses 'spherical' or "MNI" coordinates. If you want to visualise dipolefitting output you need to choose 'spherical' coords. If fact it is not the spherical coordinates as we understand it in physics (radius and 2 angles: r, theta, phi) - it uses regular cartesian coordinates (x,y,z).<br>
<br>Kind regadrs,<br>Szymon<br><br><div class="gmail_quote">W dniu 10 lutego 2009 18:39 użytkownik arno delorme <span dir="ltr"><<a href="mailto:arno@salk.edu">arno@salk.edu</a>></span> napisał:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The dipplot function can plot dipoles from spherical models or dipoles<br>
in MNI coordinates. I happens that these two models are oriented with<br>
90 degrees different (the nose points toward different directions).<br>
Also the transformation to plot on the MNI brain is different.<br>
<br>
In the spherical cases, spherical coordinates are transformed to MNI<br>
coordinates first using the sph2spm function.<br>
<br>
So if you used a MNI model to locate your dipoles, you must enter the<br>
'coordformat', 'MNI' option.<br>
<br>
Hope this helps,<br><font color="#888888">
<br>
Arno</font><div><div></div><div class="Wj3C7c"><br>
<br>
On 10 févr. 09, at 12:18, Szymon Piłat wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
I have some doubts about format of dipolefitting's output.<br>
<br>
I have wrote the scirpt which use dipolefitting. Finally I have the line:<br>
dip1 = dipolefitting(cfg, avg1);<br>
<br>
So I have dipole coordinates in "dip1" variable.<br>
I tried to visualise it with:<br>
<br>
source.posxyz = dip1.dip.pos;<br>
source.momxyz = dip1.dip.mom;<br>
source.rv = dip1.dip.rv;<br>
dipplot(source);<br>
<br>
I can also use the following instead of the previous one:<br>
<br>
dipplot(source_plot, 'coordformat', 'MNI');<br>
<br>
Difference between<br>
<br>
dipplot(source)<br>
and<br>
dipplot(source, 'coordformat', 'MNI')<br>
<br>
is very important - it is visualised in completely different location.<br>
<br>
My question is: what coordinates does the dipolefitting use at the output?<br>
How should I properly visualise its output?<br>
<br>
Thank you all in advance!<br>
<br>
Kind regards,<br>
Szymon<br></div></div><div class="Ih2E3d">
----------------------------------<br>
<br>
The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.<br>
<br>
<a href="http://listserv.surfnet.nl/archives/fieldtrip.html" target="_blank">http://listserv.surfnet.nl/archives/fieldtrip.html</a><br>
<br>
<a href="http://www.ru.nl/fcdonders/fieldtrip/" target="_blank">http://www.ru.nl/fcdonders/fieldtrip/</a><br>
<br>
</div></blockquote><div><div></div><div class="Wj3C7c">
<br>
----------------------------------<br>
The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also <a href="http://listserv.surfnet.nl/archives/fieldtrip.html" target="_blank">http://listserv.surfnet.nl/archives/fieldtrip.html</a> and <a href="http://www.ru.nl/fcdonders/fieldtrip" target="_blank">http://www.ru.nl/fcdonders/fieldtrip</a>.<br>
</div></div></blockquote></div><br>
<p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p> http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p> http://www.ru.nl/fcdonders/fieldtrip/</p>