Back to the main page.

Bug 1284 - ft_electroderealign has a syntax error

Reported 2012-01-25 10:35:00 +0100
Modified 2012-08-23 14:02:11 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Jörn M. Horschig
Depends on:
See also:

Jörn M. Horschig - 2012-01-25 10:35:50 +0100

line 460ff.: % get the data from the figure that was left behind as global variable global norm tmp = norm; clear global norm norm = tmp; clear tmp Matlab complaints that in the line of global norm, 'norm' might be used incompatibly or redefined (at least in Matlab2011a, did not test with other versions)

Robert Oostenveld - 2012-01-25 12:39:07 +0100

I do expect this to be matlab version specific the use of this global variable is undesired in passing the data from the figure back into the function local workspace. Better would be to use guidata or appdata. I did not look at this actual code, so don't know whether it can be solved like this, but I suggest this is considered in implementing the solution.

Jan-Mathijs Schoffelen - 2012-01-27 08:43:01 +0100

assigned bug to get all bugs lined up before the grand bug binge

Jörn M. Horschig - 2012-02-01 16:48:28 +0100

although being marked as a syntax error, the function executes normally without any problem

Jörn M. Horschig - 2012-08-23 14:02:11 +0200

bug closing time (