[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Parameterized gset
From: |
John W. Eaton |
Subject: |
Parameterized gset |
Date: |
Mon, 28 Aug 2000 01:01:32 -0500 (CDT) |
On 28-Aug-2000, JARED ANDERSON <address@hidden> wrote:
| I am having trouble with the gset command when plotting. I am
| attempting the following:
|
| %Find the filter length....
| Nf = ceil((A - 8) / (2.285 * delw))
| beta = 0.1102 * (A - 8.7)
|
| %construct a kaiser window
| window = kaiser(Nf, beta)';
| gset xrange [0: Nf ];
|
| And get the following response:
|
| Nf = 352
| beta = 4.5513
| line 0: undefined variable: Nf
|
| It works fine if instead of Nf in the gset I use 352, however I would like
| to be able to use variables in my gset, is this possible?
Try
eval (sprintf ("gset xrange [0: %d];Ün", Nf));
or similar.
jwe
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------