From bug-octave-request at bevo dot che dot wisc dot edu Thu Oct 30 11:17:55 1997 Subject: Error in is_vector From: "Jeffry T. Ross" To: "'bug-octave at bevo dot che dot wisc dot edu'" Date: Thu, 30 Oct 1997 12:14:18 -0500 I believe I found an inconsistency in Octave's is_vector and nextpow2 functions in Octave version 2.0.5 In Octave, a applying is_vector to a scalar result in a true condition. granted, a scalar can be considered vector of length 1. The problem arises when nextpow2.m uses is_vector and assumes that it can distinguish between scalars and multi-dimensional vectors. In nextpow2.m, if the input x is a scalar, it shouldn't be modified. If x is a multi-dimensional vector, x should equal the length of x. Because of the problem I mentioned above, all scalars are changed to 1. This problem appears to be fixed in Octave 2.0.9, so upgrading is probably the best option. Jeffry T. Ross Signal Processing Analysis Sensors & Enabling Technology The MITRE Corporation jtr at mitre dot org