[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple input()
From: |
Miroslaw Kwasniak |
Subject: |
Re: Multiple input() |
Date: |
Fri, 19 Nov 2004 14:52:51 +0100 |
User-agent: |
Mutt/1.5.6+20040907i |
> On Thu, Nov 18, 2004 at 09:10:28PM -0700, Joe Koski wrote:
> >
> > Have any changes/updates allowed prompting for the reading a specified
> > number of values? Is there a "workaround" that uses scanf(template,"C"), or
> > similar constructs, that allows the number of inputs to vary from run to
> > run?
> >
> > For a simple data plot display, I would like to ask: "How many columns to
> > plot?: 3". (That I can do.) Then I would enter a varying number of column ID
> > numbers, e.g. 5,10,15. Or, better yet, just count three entries and produce
> > the plots.
How about:
octave:2> x=input('a=')
a=[1 2 3]
x =
1 2 3
Mirek
-------------------------------------------------------------
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
-------------------------------------------------------------