Discussion:
octave command line scripting
(too old to reply)
Rahul
2008-04-21 20:43:02 UTC
Permalink
Is there an easy way to print a matrix to stdout without the "ans =" or
similar string that octave prepends variable outputs?

I was writing a octave command line script and trying to be true with the
Linux philosophy of being terse so that other pipes could better process
the octave output.

Example:

#!/usr/bin/octave --silent
a=[1 0 0; 0 1 0 ; 0 0 1];
inv(a)
exit
--
Rahul
Rahul
2008-04-21 21:21:51 UTC
Permalink
Post by Rahul
Is there an easy way to print a matrix to stdout without the "ans ="
or similar string that octave prepends variable outputs?
Ignore the question. Sorry, I just figured it out! disp(a).
--
Rahul
Loading...