[Eeglablist] Predefined dipole location ?
Makoto Miyakoshi
mmiyakoshi at ucsd.edu
Mon Oct 17 21:21:40 PDT 2016
Dear Iman,
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.
Makoto
% set 6 dipoles (edit only .posxyz)
sources(1,1).posxyz = [0 0 -20];
sources(1,1).momxyz = [0 0 0];
sources(1,1).rv = 0;
sources(1,2).posxyz = [0 0 -10];
sources(1,2).momxyz = [0 0 0];
sources(1,2).rv = 0;
sources(1,3).posxyz = [0 0 0];
sources(1,3).momxyz = [0 0 0];
sources(1,3).rv = 0;
sources(1,4).posxyz = [0 0 10];
sources(1,4).momxyz = [0 0 0];
sources(1,4).rv = 0;
sources(1,5).posxyz = [0 0 20];
sources(1,5).momxyz = [0 0 0];
sources(1,5).rv = 0;
sources(1,6).posxyz = [0 0 30];
sources(1,6).momxyz = [0 0 0];
sources(1,6).rv = 0;
% 16 colors names officially supported by W3C specification for HTML
colors{1,1} = [1 1 1]; % White
colors{2,1} = [1 1 0]; % Yellow
colors{3,1} = [1 0 1]; % Fuchsia
colors{4,1} = [1 0 0]; % Red
colors{5,1} = [0.75 0.75 0.75]; % Silver
colors{6,1} = [0.5 0.5 0.5]; % Gray
colors{7,1} = [0.5 0.5 0]; % Olive
colors{8,1} = [0.5 0 0.5]; % Purple
colors{9,1} = [0.5 0 0]; % Maroon
colors{10,1} = [0 1 1]; % Aqua
colors{11,1} = [0 1 0]; % Lime
colors{12,1} = [0 0.5 0.5]; % Teal
colors{13,1} = [0 0.5 0]; % Green
colors{14,1} = [0 0 1]; % Blue
colors{15,1} = [0 0 0.5]; % Navy
colors{16,1} = [0 0 0]; % Black
% define colors used for dipoles
plotColor = {colors{1,1} colors{2,1} colors{3,1} colors{4,1} colors{5,1}
colors{6,1}};
% plot
dipplot(sources, 'projimg', 'on', 'color', plotColor, 'dipolesize', 40,...
'projlines', 'on', 'coordformat', 'MNI', 'spheres', 'on')
dipplot(sources, 'projimg', 'on', 'color', plotColor, 'dipolesize', 60,...
'projlines', 'on', 'coordformat', 'MNI')
set(gcf, 'PaperPositionMode', 'auto', 'InvertHardcopy', 'off', 'menu',
'none', 'NumberTitle','off','Name', 'enter name here');
% add lines that connects dipoles
for n = 1:6
tal(n,:) = round(mni2tal(sources(1,n).posxyz));
end
tal
hold on
for n = 1:length(sources)-1
plot3([tal(n,1) tal(n+1,1)],...
[tal(n,2) tal(n+1,2)],...
[tal(n,3) tal(n+1,3)],...
'LineWidth', 2, 'Color', [1 1 1])
end
On Sat, Sep 17, 2016 at 3:06 PM, Scott Makeig <smakeig at ucsd.edu> wrote:
> Iman -
>
> 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.
>
> Scott
>
> On Sat, Sep 10, 2016 at 8:16 PM, Iman Mohammad-Rezazadeh <
> irezazadeh at ucdavis.edu> wrote:
>
>> Hi EEGLAbers
>>
>>
>>
>> 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
>>
>> 1) to show/represent existing interaction btw sources?
>>
>> 2) To solve the forward problem ( from intracranial data to data
>> from cortex and EEG) in EEGLAB? I have MRI data for my subjects.
>>
>>
>>
>> Best,
>>
>> Iman
>>
>
>
>
> --
> 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, http://sccn.ucsd.edu/~scott
>
--
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20161017/0240cd84/attachment.html>
More information about the eeglablist
mailing list