Back to the main page.

Bug 1811 - printstruct.m utility does not support function_handle variable

Reported 2012-11-06 14:44:00 +0100
Modified 2019-08-10 11:56:09 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P3 normal
Assigned to: Diego Lozano Soldevilla
Depends on:
See also:

Diego Lozano Soldevilla - 2012-11-06 14:44:45 +0100

When calling ft_analysisprotocol, if your data.cfg has function_handle variables, as your own trialfun, there's an error: [script, details]=ft_analysisprotocol([],meeg2) ft_appenddata depth = 7 branch = 1 ft_denoise_synthetic depth = 8 branch = 1 Error using printstruct (line 80) unsupported Error in ft_analysisprotocol (line 225) code = printstruct('cfg', thiscfg); Error in ft_analysisprotocol (line 276) ft_analysisprotocol(cfg, datacfg.previous{i}); Should we support it? Diego

Diego Lozano Soldevilla - 2012-11-12 13:00:41 +0100

(In reply to comment #0) function_handle variable is included in printstruct function. A test function with the data the generated the error and preprocessed (/home/common/matlab/fieldtrip/data/test/latest/raw/meg) is created. Diego

Robert Oostenveld - 2019-08-10 11:56:09 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on