Back to the main page.

Bug 1006 - sourceanalysis breaks on checkconfig?

Status CLOSED WORKSFORME
Reported 2011-10-04 11:32:00 +0200
Modified 2012-02-03 22:02:21 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P1 normal
Assigned to: Stephen Whitmarsh
URL:
Tags:
Depends on:
Blocks:
See also:

Stephen Whitmarsh - 2011-10-04 11:32:36 +0200

Below the output. Please let me know if I should upload data (or if you want to come to my room, got it in debug :)) the input is freq data with 274 channels, 1 frequencybins and no timebins using headmodel specified in the configuration using gradiometers specified in the configuration computing surface normals creating dipole grid based on user specified dipole positions 21819 dipoles inside, 16737 dipoles outside brain scanning repetition 1 ??? Undefined function or method 'fieldnames' for input arguments of type 'char'. Error in ==> ft_checkconfig>checksizefun at 568 fieldsorig = fieldnames(cfg); Error in ==> ft_checkconfig>checksizefun at 585 cfg(k).(fieldsorig{i}){j} = checksizefun(cfg(k).(fieldsorig{i}){j}, max_size); Error in ==> ft_checkconfig>checksizefun at 581 cfg(k).(fieldsorig{i}) = checksizefun(cfg(k).(fieldsorig{i}), max_size); Error in ==> ft_checkconfig>checksizefun at 581 cfg(k).(fieldsorig{i}) = checksizefun(cfg(k).(fieldsorig{i}), max_size); Error in ==> ft_checkconfig at 561 cfg = checksizefun(cfg, cfg.checksize); Error in ==> ft_sourceanalysis at 1047 cfg = ft_checkconfig(cfg, 'trackconfig', 'off', 'checksize', 'yes');


Jörn M. Horschig - 2011-10-04 11:38:33 +0200

hey, worked for me a second ago - until I ran into a different issue, see #1005 ;) fieldnames is a built-in Matlab function, so this one should not be FT related


Jörn M. Horschig - 2011-10-04 11:40:20 +0200

uh, one more, my guess: there is a variable called 'fieldnames' in the workspace thus it shadows the built-in function


Stephen Whitmarsh - 2011-10-04 12:03:09 +0200

its fieldtrip related alright, but hard to figure out in such a recursive function, some variables not being passed over or something. fieldname is also not used as a variable.


Robert Oostenveld - 2011-10-05 09:10:37 +0200

are you using configuration tracking, i.e. is the cfg an object instead of a structure?


Stephen Whitmarsh - 2012-01-12 11:02:15 +0100

Whatever it was, it doesnt occur anymore. Closing bug.