[Eeglablist] How to save the normalized data that we see in scroll data display?

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Fri Nov 2 15:18:20 PDT 2012


Dear Edward,

Yes, must be right if it works. Sorry for my mistake!

Makoto

2012/11/2 Edward Justin Modestino <edward.modestino at gmail.com>:
> This appears to work:
>
> tmp = EEG.data(:,:);
>
> tmp = zscore(tmp, 0, 2);
>
> tmp = reshape(tmp, size(EEG.data));
>
> EEG.data = tmp;
>
>
> Is this code correct?
>
>
> On Fri, Nov 2, 2012 at 2:33 PM, Edward Justin Modestino
> <edward.modestino at gmail.com> wrote:
>>
>> No, that still did not work.
>>
>>
>> >> tmp = reshape(EEG.data, [size(EEG.data, 1) size(EEG.data, 2) *
>> size(EEG.data, 3) ]);
>> tmp = zscore(tmp, 0, 2);
>> tmp = reshape(tmp, size(EEG.data));
>> EEG.data = tmp;
>> ??? tmp = reshape(EEG.data, [size(EEG.data, 1) size(EEG.data, 2) *
>>                                                                   |
>> Error: Expression or statement is incorrect--possibly unbalanced (, {, or
>> [.
>>
>>
>>
>> On Fri, Nov 2, 2012 at 2:23 PM, Makoto Miyakoshi <mmiyakoshi at ucsd.edu>
>> wrote:
>>>
>>> Dear Edward,
>>>
>>> > Error: Expression or statement is incorrect--possibly unbalanced (, {,
>>> > or [.
>>>
>>> Oops. The line must be
>>>
>>> tmp = reshape(EEG.data, [size(EEG.data, 1) size(EEG.data, 2) *
>>> size(EEG.data, 3) ]);
>>>
>>> The last parenthesis was missing.
>>> By the way I learned a shortcut for it yesterday, and
>>>
>>> tmp = EEG.data(:,:);
>>>
>>> should also work.
>>>
>>> Makoto
>>>
>>>
>>> 2012/11/2 Edward Justin Modestino <edward.modestino at gmail.com>:
>>> > Makoto,
>>> > I need to be able to get this working as well. I tried it and got the
>>> > following error.
>>> >
>>> >
>>> >>> tmp = reshape(EEG.data, [size(EEG.data, 1) size(EEG.data, 2) *
>>> > size(EEG.data, 3) ];
>>> > tmp = zscore(tmp, 0, 2);
>>> > tmp = reshape(tmp, size(EEG.data));
>>> > EEG.data = tmp;
>>> > ??? tmp = reshape(EEG.data, [size(EEG.data, 1) size(EEG.data, 2) *
>>> >                                                                   |
>>> > Error: Expression or statement is incorrect--possibly unbalanced (, {,
>>> > or [.
>>> >
>>> >
>>> > On Thu, Nov 1, 2012 at 1:21 PM, Makoto Miyakoshi <mmiyakoshi at ucsd.edu>
>>> > wrote:
>>> >>
>>> >> Dear nabaraj,
>>> >>
>>> >> Check out the function zscore.
>>> >> If your data are epoched, then the code should be something like
>>> >>
>>> >> tmp = reshape(EEG.data, [size(EEG.data, 1) size(EEG.data, 2) *
>>> >> size(EEG.data, 3) ];
>>> >> tmp = zscore(tmp, 0, 2);
>>> >> tmp = reshape(tmp, size(EEG.data));
>>> >> EEG.data = tmp;
>>> >>
>>> >> This should normalizes each channel.
>>> >>
>>> >> Makoto
>>> >>
>>> >> 2012/10/29 nabaraj dahal <nabarajdahal at gmail.com>:
>>> >> > Dear list member,
>>> >> > I wish to save the normalized data of all channels for further
>>> >> > processing.
>>> >> > Is there any way I can save the normalized data of all channels that
>>> >> > we
>>> >> > see
>>> >> > in scroll data display?
>>> >> > I would be grateful for you help.
>>> >> >
>>> >> > Best Regards,
>>> >> > Nab
>>> >> >
>>> >> > _______________________________________________
>>> >> > Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>>> >> > To unsubscribe, send an empty email to
>>> >> > eeglablist-unsubscribe at sccn.ucsd.edu
>>> >> > For digest mode, send an email with the subject "set digest mime" to
>>> >> > eeglablist-request at sccn.ucsd.edu
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Makoto Miyakoshi
>>> >> JSPS Postdoctral Fellow for Research Abroad
>>> >> Swartz Center for Computational Neuroscience
>>> >> Institute for Neural Computation, University of California San Diego
>>> >> _______________________________________________
>>> >> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>>> >> To unsubscribe, send an empty email to
>>> >> eeglablist-unsubscribe at sccn.ucsd.edu
>>> >> For digest mode, send an email with the subject "set digest mime" to
>>> >> eeglablist-request at sccn.ucsd.edu
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Edward Justin Modestino, Ph.D.
>>> > Neuroscientist/Faculty
>>> > Atlantic University
>>> >
>>>
>>>
>>>
>>> --
>>> Makoto Miyakoshi
>>> JSPS Postdoctral Fellow for Research Abroad
>>> Swartz Center for Computational Neuroscience
>>> Institute for Neural Computation, University of California San Diego
>>
>>
>>
>>
>> --
>> Edward Justin Modestino, Ph.D.
>> Neuroscientist/Faculty
>> Atlantic University
>>
>
>
>
> --
> Edward Justin Modestino, Ph.D.
> Neuroscientist/Faculty
> Atlantic University
>



-- 
Makoto Miyakoshi
JSPS Postdoctral Fellow for Research Abroad
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego



More information about the eeglablist mailing list