help-octave
[Top][All Lists]
Advanced

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

Re: echo-input=0 from command line


From: Mike Miller
Subject: Re: echo-input=0 from command line
Date: Fri, 11 Jul 2003 12:01:53 -0500 (CDT)

On Fri, 11 Jul 2003, Heine Kolltveit wrote:

> Try writing a ";" at the end of the line:
> input("type something");


You can also use 'disp' if you want to display the input without the
'ans =' part of the output....


octave:1> input("type something: ")
type something: rand(2)
ans =

  0.031436  0.988326
  0.723537  0.465700

octave:2> disp(input("type something: "))
type something: rand(2)
  0.50054  0.88083
  0.65640  0.92201
octave:3> input("type something: ");
type something: rand(2)
octave:4>


Mike



-------------------------------------------------------------
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]