From: Simon C. <si...@li...> - 2003-05-22 09:53:29
|
Greetings, I've recently noticed that is_vector(X) and is_matrix(X) both return true if X is a scalar. is_matrix(X) also returns true if X is vector. I found a message [1] reporting this problem in 1997 and a follow-up message claiming that the problem was fixed [2]. However, the problem seems to still exist in Octave 2.1.35. Is this how is_vector and is_matrix are meant to behave? I noticed the problem when calling mesh(X,Y,Z) with three vectors (i.e. while trying to plot the points <X(i),Y(i),Z(i)>). mesh complains because it attempts to interpret its input as if Z was a matrix (since is_matrix(Z) returns true). [1] http://www.octave.org/octave-lists/archive/bug-octave.1997/msg00153.html [2] http://www.octave.org/octave-lists/archive/bug-octave.1997/msg00159.html Schiavo Simon -- - - - - - - - - - - - - - - - - 4979 486 380 (llec) :leT 9383 056 120 (krow) ten.az.noulg@nomis :liam-E - - - - - - - - - - - - - - - - |