As I posted earlier, <span style="font-family:arial,sans-serif;font-size:13px">it's simple to compute:</span><div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
normdata = zscore(EEG.data,0,2);</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">No need to reshape, etc. This will normalize each channel and each epoch independently.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Tim</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 2, 2012 at 11:23 AM, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Edward,<br>
<br>
> Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.<br>
<br>
Oops. The line must be<br>
<div class="im"><br>
tmp = reshape(EEG.data, [size(EEG.data, 1) size(EEG.data, 2) *<br>
</div>size(EEG.data, 3) ]);<br>
<br>
The last parenthesis was missing.<br>
By the way I learned a shortcut for it yesterday, and<br>
<br>
tmp = EEG.data(:,:);<br>
<br>
should also work.<br>
<br>
Makoto<br>
<br>
<br>
2012/11/2 Edward Justin Modestino <<a href="mailto:edward.modestino@gmail.com">edward.modestino@gmail.com</a>>:<br>
> Makoto,<br>
> I need to be able to get this working as well. I tried it and got the<br>
> following error.<br>
<div class="im">><br>
><br>
>>> tmp = reshape(EEG.data, [size(EEG.data, 1) size(EEG.data, 2) *<br>
> size(EEG.data, 3) ];<br>
> tmp = zscore(tmp, 0, 2);<br>
> tmp = reshape(tmp, size(EEG.data));<br>
> EEG.data = tmp;<br>
</div>> ??? tmp = reshape(EEG.data, [size(EEG.data, 1) size(EEG.data, 2) *<br>
> |<br>
> Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.<br>
<div class="HOEnZb"><div class="h5">><br>
><br>
> On Thu, Nov 1, 2012 at 1:21 PM, Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu">mmiyakoshi@ucsd.edu</a>><br>
> wrote:<br>
>><br>
>> Dear nabaraj,<br>
>><br>
>> Check out the function zscore.<br>
>> If your data are epoched, then the code should be something like<br>
>><br>
>> tmp = reshape(EEG.data, [size(EEG.data, 1) size(EEG.data, 2) *<br>
>> size(EEG.data, 3) ];<br>
>> tmp = zscore(tmp, 0, 2);<br>
>> tmp = reshape(tmp, size(EEG.data));<br>
>> EEG.data = tmp;<br>
>><br>
>> This should normalizes each channel.<br>
>><br>
>> Makoto<br>
>><br>
>> 2012/10/29 nabaraj dahal <<a href="mailto:nabarajdahal@gmail.com">nabarajdahal@gmail.com</a>>:<br>
>> > Dear list member,<br>
>> > I wish to save the normalized data of all channels for further<br>
>> > processing.<br>
>> > Is there any way I can save the normalized data of all channels that we<br>
>> > see<br>
>> > in scroll data display?<br>
>> > I would be grateful for you help.<br>
>> ><br>
>> > Best Regards,<br>
>> > Nab<br>
>> ><br>
>> > _______________________________________________<br>
>> > Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
>> > To unsubscribe, send an empty email to<br>
>> > <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
>> > For digest mode, send an email with the subject "set digest mime" to<br>
>> > <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> Makoto Miyakoshi<br>
>> JSPS Postdoctral Fellow for Research Abroad<br>
>> Swartz Center for Computational Neuroscience<br>
>> Institute for Neural Computation, University of California San Diego<br>
>> _______________________________________________<br>
>> Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
>> To unsubscribe, send an empty email to<br>
>> <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
>> For digest mode, send an email with the subject "set digest mime" to<br>
>> <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br>
><br>
><br>
><br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
> Edward Justin Modestino, Ph.D.<br>
> Neuroscientist/Faculty<br>
> Atlantic University<br>
</font></span><div class="HOEnZb"><div class="h5">><br>
<br>
<br>
<br>
--<br>
Makoto Miyakoshi<br>
JSPS Postdoctral Fellow for Research Abroad<br>
Swartz Center for Computational Neuroscience<br>
Institute for Neural Computation, University of California San Diego<br>
_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>--------- αντίληψη -----------<br>
</div>