Back to the main page.

Bug 19 - the length of a vector is sometimes used, whereas numel is more robust (before/after vectorization)

Reported 2010-01-18 13:23:00 +0100
Modified 2011-01-05 12:01:08 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Robert Oostenveld
Depends on:
See also:

Robert Oostenveld - 2010-01-18 13:23:00 +0100

statistics_wrapper includes on line 502 the following Nvoxel = length(varargin{1}.inside) + length(varargin{1}.outside); which should be (and is now replaced by): Nvoxel = numel(varargin{1}.inside) + numel(varargin{1}.outside); probably there are more places where length is used, whereas numel would be more robust. TODO search for length and replace it (if needed) by numel

Robert Oostenveld - 2010-07-04 12:03:01 +0200

there are too many places where length is used, an automatic search-and-replace is not possible. Perhaps consider this as a future programming guideline...

Robert Oostenveld - 2011-01-05 11:57:03 +0100

selected a long list of resolved bugs from roboos and changed the status into "RESOLVED"

Robert Oostenveld - 2011-01-05 12:01:08 +0100

selected all old bugs from roboos with status RESOLVED and changed it into CLOSED