[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to load a filename from a scrip
From: |
John W. Eaton |
Subject: |
Re: how to load a filename from a scrip |
Date: |
Thu, 23 Oct 2003 12:01:33 -0500 |
On 23-Oct-2003, Geraint Paul Bevan <address@hidden> wrote:
| -----BEGIN PGP SIGNED MESSAGE-----
| Hash: SHA1
|
| charo wrote:
| | Hello again,
|
| |
| ...........................................................................
| | function [veloMat,bins,val] = velocities(framesFile,velocitiesFile)
| | ....
| | load framesFile; <--------------(1)
| | ....
| | endfunction
| |
|
| You can use eval(sprintf()) again for this:
|
| eval(sprintf('load %s', framesFile)); # should do the trick
Or you can use the functional form of load:
load (framesFile);
jwe
-------------------------------------------------------------
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
-------------------------------------------------------------