[FieldTrip] ft_clusterplot vlim error

G Stothart George.Stothart at bristol.ac.uk
Wed Jul 8 15:47:25 CEST 2015

I am trying to plot the outcome of a cluster analysis of a 
within-subjects time frequency analysis.

cfg = [];
cfg.layout = 'acticap32.mat';
cfg.alpha  = 0.05;
cfg.parameter = 'raweffect';
ft_clusterplot(cfg, stat);

I keep receiving an error message referring to vlim, but I can't seem to 
solve this.Specifically I get the following output from matlab:

reading layout from file acticap32.mat
the call to "ft_prepare_layout" took 0 seconds
There are 1 clusters smaller than alpha (0.05)
Positive cluster: 1, pvalue: 0.049505 (x)
the call to "ft_prepare_layout" took 0 seconds
Warning: The option cfg.xparam is deprecated, support is no longer 

 > In ft_checkconfig at 164
   In fieldtrip-20150115\private\topoplot_common at 32
   In ft_topoplotTFR at 192
   In ft_clusterplot at 401
Attempted to access vlim(1); index out of bounds because numel(vlim)=0.

Error in ft_plot_vector (line 209)
if vlim(1)==vlim(2)

Error in ft_plot_topo (line 279)
   ft_plot_vector(xval, yval, 'Color', 'k', 'LineWidth', 2, 'tag', tag, 
'parent', parent);

Error in topoplot_common (line 769)

Error in ft_topoplotTFR (line 192)
[cfg] = topoplot_common(cfg, varargin{:});

Error in ft_clusterplot (line 401)
       ft_topoplotTFR(cfgtopo, stat);

As requested here are the cfg and stat details.

 >> display (cfg)

cfg =

        layout: 'acticap32.mat'
         alpha: 0.0500
     parameter: 'raweffect'

 >> display (stat)

stat =

                    prob: [33x1x25 double]
             posclusters: [1x9 struct]
     posclusterslabelmat: [33x1x25 double]
         posdistribution: [1x100 double]
             negclusters: [1x3 struct]
     negclusterslabelmat: [33x1x25 double]
         negdistribution: [1x100 double]
                 cirange: [33x1x25 double]
                    mask: [33x1x25 logical]
                    stat: [33x1x25 double]
                     ref: [33x1x25 double]
                  dimord: 'chan_freq_time'
                   label: {33x1 cell}
                    time: [1x25 double]
                     cfg: [1x1 struct]
               raweffect: [33x34x25 double]

I have attached my layout file (acticap32.mat), my cfg and stat files.
Many thanks!

Dr George Stothart
Research Associate

School of Experimental Psychology
12a Priory Road
University of Bristol

Office: +44 (0)117 331 7894
Mobile: +44 (0)791 070 2859


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cfg.mat
Type: application/octet-stream
Size: 273 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150708/f003cab8/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stat.mat
Type: application/octet-stream
Size: 181698 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150708/f003cab8/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acticap32.mat
Type: application/octet-stream
Size: 1933 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150708/f003cab8/attachment-0005.obj>

More information about the fieldtrip mailing list