[Eeglablist] Error using newcrossf

Bin Wang binwang87828 at gmail.com
Sun Nov 30 15:44:15 PST 2014


Hi all,
I am trying to use newcrossf to calculate the phase coherence between two channels, but I got an error follows when it plots:
??? Error using ==> cbar at 166
Color vector excedes size of colormap

Error in ==> newcrossf>plotall at 1090
        cbar(h(8),151:300, [0 tmpscale(2)]); % use only positive colors (gyorv)

Error in ==> newcrossf at 928
        plotall  ( coherres, Rbootout, timesout, freqs, mbase, g);
I am using a epoched data, here is the function I used:
[coh,mcoh,timesout,freqsout,cohboot,cohangles] = newcrossf(Chan1_EEG, Chan2_EEG, 800, [-1000 500],200, 3,'type','phasecoher');
Chan1_EEG and Chan2_EEG are data matrix of 1*800*80 dimension.
Any tips would be appreciated, thanks a lot in advance.

Best
Bin

++++++++++++++++++++++++++++++
Bin Wang
Cognitive Neuroscience
Institute of Neuroscience and Medicine (INM-3)
Forschungszentrum Juelich, 
Leo-Brandt-Str. 5 
52425 Juelich
Email: b.wang at fz-juelich.de <https://webmail.fz-juelich.de/owa/redir.aspx?C=hswxAlx8wU6cP189jFS_1w0PFSKb8dAIIkV6dqtR-VUUMNMIisKisV7RZADeuZK3wPR2w27Q5yU.&URL=mailto%3abinwang87828%40gmail.com>
     &  binwang87828 at gmail.com <https://webmail.fz-juelich.de/owa/redir.aspx?C=hswxAlx8wU6cP189jFS_1w0PFSKb8dAIIkV6dqtR-VUUMNMIisKisV7RZADeuZK3wPR2w27Q5yU.&URL=mailto%3abinwang87828%40gmail.com>   <https://webmail.fz-juelich.de/owa/redir.aspx?C=hswxAlx8wU6cP189jFS_1w0PFSKb8dAIIkV6dqtR-VUUMNMIisKisV7RZADeuZK3wPR2w27Q5yU.&URL=mailto%3abinwang87828%40gmail.com>
Telefon: 02461-61-9542
++++++++++++++++++++++++++++++




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20141201/fe518877/attachment.html>


More information about the eeglablist mailing list