Mercurial > hg > octave-lojdl
diff scripts/general/__isequal__.m @ 9841:6f1ea8241c99
make isnumeric yield false on logicals
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 20 Nov 2009 08:18:41 +0100 (2009-11-20) |
parents | eb63fbe60fab |
children |
line wrap: on
line diff
--- a/scripts/general/__isequal__.m +++ b/scripts/general/__isequal__.m @@ -66,8 +66,8 @@ ## numeric values. t = (all (strcmp (class(x), cellfun (@class, varargin, "UniformOutput", false))) - || (isnumeric (x) - && all (cellfun (@isnumeric, varargin, "UniformOutput", true)))); + || ((isnumeric (x) || islogical (x)) + && all ((cellfun (@isnumeric, varargin) | cellfun (@islogical, varargin))))); if (t) ## Test that everything has the same number of dimensions.