<div dir="ltr"><div>Dear Iman,</div><div><br></div><div>It's the same thing I sent you before but for the sake of record I send it again as a plain text. This is for 1). I don't know 2), I've never done it myself.</div><div><br></div><div>Makoto</div><div><br></div>% set 6 dipoles (edit only .posxyz)<div>sources(1,1).posxyz = [0 0 -20];</div><div>sources(1,1).momxyz = [0 0 0];</div><div>sources(1,1).rv     = 0;</div><div><br></div><div>sources(1,2).posxyz = [0 0 -10];</div><div>sources(1,2).momxyz = [0 0 0];</div><div>sources(1,2).rv     = 0;</div><div><br></div><div>sources(1,3).posxyz = [0 0 0];</div><div>sources(1,3).momxyz = [0 0 0];</div><div>sources(1,3).rv     = 0;</div><div><br></div><div>sources(1,4).posxyz = [0 0 10];</div><div>sources(1,4).momxyz = [0 0 0];</div><div>sources(1,4).rv     = 0;</div><div><br></div><div>sources(1,5).posxyz = [0 0 20];</div><div>sources(1,5).momxyz = [0 0 0];</div><div>sources(1,5).rv     = 0;</div><div><br></div><div>sources(1,6).posxyz = [0 0 30];</div><div>sources(1,6).momxyz = [0 0 0];</div><div>sources(1,6).rv     = 0;</div><div><br></div><div>% 16 colors names officially supported by W3C specification for HTML</div><div>colors{1,1}  = [1 1 1];            % White</div><div>colors{2,1}  = [1 1 0];            % Yellow</div><div>colors{3,1}  = [1 0 1];            % Fuchsia</div><div>colors{4,1}  = [1 0 0];            % Red</div><div>colors{5,1}  = [0.75  0.75  0.75]; % Silver</div><div>colors{6,1}  = [0.5 0.5 0.5];      % Gray</div><div>colors{7,1}  = [0.5 0.5 0];        % Olive</div><div>colors{8,1}  = [0.5 0 0.5];        % Purple</div><div>colors{9,1}  = [0.5 0 0];          % Maroon</div><div>colors{10,1} = [0 1 1];            % Aqua</div><div>colors{11,1} = [0 1 0];            % Lime</div><div>colors{12,1} = [0 0.5 0.5];        % Teal</div><div>colors{13,1} = [0 0.5 0];          % Green</div><div>colors{14,1} = [0 0 1];            % Blue</div><div>colors{15,1} = [0 0 0.5];          % Navy</div><div>colors{16,1} = [0 0 0];            % Black</div><div><br></div><div>% define colors used for dipoles</div><div>plotColor = {colors{1,1} colors{2,1} colors{3,1} colors{4,1} colors{5,1} colors{6,1}};</div><div><br></div><div>% plot</div><div>dipplot(sources, 'projimg', 'on', 'color', plotColor,  'dipolesize', 40,...</div><div>                 'projlines', 'on', 'coordformat', 'MNI', 'spheres', 'on')</div><div>            </div><div>dipplot(sources, 'projimg', 'on', 'color', plotColor,  'dipolesize', 60,...</div><div>                 'projlines', 'on', 'coordformat', 'MNI')</div><div>             </div><div>set(gcf, 'PaperPositionMode', 'auto', 'InvertHardcopy', 'off', 'menu', 'none', 'NumberTitle','off','Name', 'enter name here');</div><div><br></div><div>% add lines that connects dipoles</div><div>for n = 1:6</div><div>    tal(n,:) = round(mni2tal(sources(1,n).posxyz));</div><div>end</div><div>tal</div><div>hold on</div><div>for n = 1:length(sources)-1</div><div>    plot3([tal(n,1) tal(n+1,1)],...</div><div>          [tal(n,2) tal(n+1,2)],...</div><div>          [tal(n,3) tal(n+1,3)],...</div><div>          'LineWidth', 2, 'Color', [1 1 1])</div><div>end</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 17, 2016 at 3:06 PM, Scott Makeig <span dir="ltr"><<a href="mailto:smakeig@ucsd.edu" target="_blank">smakeig@ucsd.edu</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">Iman -<div><br></div><div>Zeynep's NFT toolbox can make a forward model from an MR image.  She can give you further advice about placing hypothetical source dipoles wherever you like.</div><div><br></div><div>Scott</div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Sat, Sep 10, 2016 at 8:16 PM, Iman Mohammad-Rezazadeh <span dir="ltr"><<a href="mailto:irezazadeh@ucdavis.edu" target="_blank">irezazadeh@ucdavis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hi EEGLAbers <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Anyone is aware of a way that one can place dipoles at a certain/ predefined  locations ( such as Hippocampus , Intra-Temporal Cortex, ...) manually in EEGLAB.  I know we may not estimate properly  deep sources ( such as Hippocampus ) but
 I have some Intracranial data and want to use EEGLAB <u></u><u></u></p>
<p><u></u><span>1)<span style="font:7.0pt "Times New Roman"">     
</span></span><u></u><span dir="LTR"></span>to show/represent existing interaction btw sources?<u></u><u></u></p>
<p><u></u><span>2)<span style="font:7.0pt "Times New Roman"">     
</span></span><u></u><span dir="LTR"></span>To solve the forward problem ( from intracranial data to data from cortex and EEG) in EEGLAB? I have MRI data for my subjects.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal">Best,<u></u><u></u></p>
<p class="MsoNormal">Iman<u></u><u></u></p>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_-193931754196460742gmail_signature" data-smartmail="gmail_signature">Scott Makeig, Research Scientist and Director, Swartz Center for Computational Neuroscience, Institute for Neural Computation, University of California San Diego, La Jolla CA 92093-0961, <a href="http://sccn.ucsd.edu/~scott" target="_blank">http://sccn.ucsd.edu/~scott</a></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div>