Back to the main page.

Bug 741 - cfg.statistic not in statistics_crossvalidate

Status CLOSED FIXED
Reported 2011-06-08 10:27:00 +0200
Modified 2011-06-17 22:56:20 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P1 normal
Assigned to: Johanna
URL:
Tags:
Depends on:
Blocks:
See also:

Johanna - 2011-06-08 10:27:46 +0200

Regarding recent email on FT list from Johann Martinez (copied below), cfg.statistic doesn't exist in prepare_design in the situation he ran from the tutorial, because cfg.statistic is not required for statistics_crossvalidate, but is otherwise required for other statistics_*.m Since I'm assigned the bugs to deprecate prepare_design, I can look into this. -------------------------- Johann Heinz Martínez Huartos ? to fieldtrip 7 Jun Hello dear fieldtrip guys. Im new using this toolbox and i dont understand why is happened this error that i think it must be easy to solve but I have tryed and nothing happend. The thing is that im following (step by step) the tutorial for multivariableanalysis from fieldtrip wiki using the data that web link offer us. But when I run the command: stat = ft_timelockstatistics(cfg,tleft,tright); there are appear those errors: ??? Reference to non-existent field 'statistic'. Error in ==> prepare_design at 67 if any(strcmp(cfg.statistic,{'indepsamplesT','indepsamplesregrT','indepsamplesZcoh','indepsamplesF'})) Error in ==> statistics_wrapper at 249 [cfg] = prepare_design(cfg); Error in ==> ft_timelockstatistics at 123 [stat, cfg] = statistics_wrapper(cfg, varargin{:}); Error in ==> JohannTestFieldtrip at 45 stat = ft_timelockstatistics(cfg,tleft,tright); and i Dunno what can i do... Im using Matlab (R2011a) and the (fieldtrip-20110603). I have been looking for the documentation and i coundt find out how to fix it. Is it probably the matlab version very new? Which would be the last matlab version available using for? Thanks


Johanna - 2011-06-08 14:56:02 +0200

turns out he probably forgot to call the line specifying cfg.design from the tutorial.