[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using strings as arguments to load and save
From: |
Jun Ohta |
Subject: |
Re: using strings as arguments to load and save |
Date: |
Wed, 20 Jul 2005 23:29:29 +0900 |
Hello,
> Using a string variable as filename, I get an error:
> octave:17> file = "nov03.h5m2"
> octave:18> load file
> error: load: nonexistent file: `file'
Please try as follows:
>> file = "nov03.h5m2"
>> eval([ "load ", file ])
Jun Ohta
www.metabo-info.org
-------------------------------------------------------------
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
-------------------------------------------------------------