help-octave
[Top][All Lists]
Advanced

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

Re: loading a file using a variable name


From: Ben Abbott
Subject: Re: loading a file using a variable name
Date: Thu, 12 Jul 2007 08:45:22 -0700 (PDT)


cadu aranha wrote:
> 
> [...]
> 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?
> 

If you file is named 'somefile.m', then you can do this

filename = 'somefile';
eval(filename)





-- 
View this message in context: 
http://www.nabble.com/loading-a-file-using-a-variable-name-tf4068824.html#a11562881
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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