help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is wrong here?


From: Vic Norton
Subject: What is wrong here?
Date: Tue, 9 Nov 2004 16:14:33 -0500

From an interactive session:

octave> invIndices(1:3)
ans =

  234
  218
  215

octave> for i = invIndices(1:3)'
 printf ("%3u: %s\n", i, dates(i, :));
 endfor
234: 15-May-2000
218: 04-Sep-2000
215: 25-Sep-2000

octave> for i = invIndices(1:3)
 printf ("%3u: %s\n", i, dates(i, :));
 endfor
234: warning: implicit conversion from matrix to string
???
218: 102545---MSSaeeypp---222000000000

What is wrong with using the column vector invIndices(1:3) as an index set? Why does it foul up the date array?

I am using GNU Octave, version 2.1.57 (powerpc-apple-darwin7.3.0).



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]