another coherence question

Andre Bastos abastos at BERKELEY.EDU
Wed Nov 8 23:11:04 CET 2006

Hello Everyone,

So I am trying to do a simple coherence measure between a single electrode
pair, PO3 and Cz. It seems like the computations are running, fine, the
problem is in trying to use singleplotER to visualize the results, which
always fails with the following error:

    Error using ==> plot, Vectors must be the same lengths.

    Error in ==> singleplotER at 287
        plot(varargin{k-1}.(cfg.xparam), P, style);

My cfg structure looks like this:
    cfg =

       zparam           = 'plvspctrm';
       xlim             = [5 100];
       cohrefchannel    = 'Cz';
       channel          = 'PO3';

The data were first run through the scalpcurrentdensity function using the
'finite' method, then time frequency analysis was compute in frequencies
1-100 using the 'mtmconvol' method with 'powandcsd' output, using the
channel = {'PO3' 'PO4' 'Cz'}, with channelcmb set to {'PO3' 'Cz'; 'PO4'
'Cz'}. Then I called freqdescriptives using cohmethod = 'plv'.

The returned data structure definetly has coherence data in it, and has a
.plvspctrm field which is 2x100x61, channelcmb x freqs x time. Ive looked
at the data and it seems to make sense, it has numbers that range from 0
to 0.5, so it seems like the plot function is really whats giving me

Any words of wisdom?

Thank You in advance,

Andre Bastos
Robertson Lab, UC Berkeley

More information about the fieldtrip mailing list