[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to load a filename from a scrip
From: |
Geraint Paul Bevan |
Subject: |
Re: how to load a filename from a scrip |
Date: |
Thu, 23 Oct 2003 15:27:25 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
-----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
- --
Geraint Bevan
http://www.mech.gla.ac.uk/~gbevan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iEYEARECAAYFAj+X5UwACgkQcXV3N50QmNNPFgCeKhjVfAsBZdQkgUf+zj8t0AtO
EycAnjapz11OeAior9/S9afvTnCo7h6k
=9Ase
-----END PGP SIGNATURE-----
-------------------------------------------------------------
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
-------------------------------------------------------------