Back to the main page.

Bug 1845 - ft_preproc_padding: 'padtype' variable not initialized

Status CLOSED FIXED
Reported 2012-11-23 10:34:00 +0100
Modified 2014-03-12 12:21:34 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Jörn M. Horschig
URL:
Tags:
Depends on:
Blocks:
See also:

Stephen Whitmarsh - 2012-11-23 10:34:54 +0100

??? SWITCH expression must be a scalar or string constant. Error in ==> ft_preproc_padding at 52 switch(padtype) Error in ==> ft_specest_mtmconvol at 284 datspectrum = transpose(fft(transpose(ft_preproc_padding(dat, padtype, 0, postpad)))); % double explicit transpose to speedup fft Error in ==> ft_freqanalysis at 505 [spectrum_mtmconvol,ntaper,foi,toi] = ft_specest_mtmconvol(dat, time, 'timeoi', cfg.toi, 'timwin', cfg.t_ftimwin, 'taper', ... Error in ==> do_TFR_for_distribution_cuelocked at 57 TFR_left = ft_freqanalysis(cfg, DataPlanar);


Roemer van der Meij - 2012-11-23 10:36:38 +0100

I'll assign it to Jorn (our other JM) straight away ;)


Jörn M. Horschig - 2012-11-23 10:38:53 +0100

whoopsi, forgot to set the default ;) 520 $ svn ci specest/ft_specest_mtmconvol.m -m "default padtype = zero padding" Sending specest/ft_specest_mtmconvol.m Transmitting file data . Committed revision 6982. should be fixed, let me know if not!


Stephen Whitmarsh - 2012-11-23 11:02:51 +0100

thanks! no errors yet ;-)