[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Input numbers in Octave program
From: |
Geordie McBain |
Subject: |
Re: Input numbers in Octave program |
Date: |
Mon, 16 Aug 2004 12:26:36 -0400 |
Hello,
Octave does have a scanf function, but input() is probably more useful
for obtaining values interactively from the prompt; e.g.
octave> user_input = input ("Enter an Octave value: ")
Enter an Octave value: rand (1, 3)
user_input =
0.96991 0.55097 0.31940
See the chapter `Input and output' in the manual for more details on
input() and the many other input functions.
Geordie McBain
On Sun, 2004-08-15 at 12:32, ganadeva bishnupada bandyopadhyay wrote:
> Hi,
> I have started using Octave very recently.I am trying to find an octave
> function which performs a function similar to scanf in C for all the possible
> variable types from the octave prompt.Is it possible to use scanf with some
> modifications or Octave uses an altogether different command for input?
> regards,
> Mr.Ganadeva Bandyopadhyay
-------------------------------------------------------------
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
-------------------------------------------------------------