help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loading a file using a variable name


From: oxyopes
Subject: loading a file using a variable name
Date: Thu, 12 Jul 2007 17:14:19 +0200

hi friends,
i would like to load a file in octave, which name is given
by a variable, like:
datfile = 'xxx.dat'
load datfile

And to load a file with variables set in it like:
var1=100;
var2=200;

the load command gives an error. Command fopens runs,
but then the variables are no loaded, i do not konw how to do that.
I know executing the filename works, but if the filename is given
by a variable, then i do not know how to execute it.
Any idea?
Thanks in advance ...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]