help-octave
[Top][All Lists]
Advanced

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

Re: load command question


From: Bill Denney
Subject: Re: load command question
Date: Mon, 8 May 2006 13:36:53 -0400 (EDT)

On Mon, 8 May 2006, Stefan van der Walt wrote:

On Sun, May 07, 2006 at 10:31:53PM -0400, Bill Denney wrote:
On Mon, 8 May 2006, Stefan van der Walt wrote:

x = "1"
filename = "myfile"
exec(["load(", filename, x, ".dat)"])

which will execute

load(myfile1.dat)
strings and numbers like that-- you need something like num2str.  Also, a
Look carefully -- x and filename were both strings :)

Sorry, I did miss that.

Bill

--
If you make a mistake you right it
immediately to the best of your ability.
  -- /usr/bin/fortune



reply via email to

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