[Top][All Lists]

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

Re: loading data

From: John W. Eaton
Subject: Re: loading data
Date: Tue, 18 Aug 1998 11:24:31 -0500 (CDT)

On 13-Aug-1998, Mario Storti <address@hidden> wrote:

| You should write
| octave> eval(["load " filename])
| Hope this helps

In recent versions of Octave, you can also avoid the call to eval by

  load (filename);

So the original example

| > filename=input("Data File: ","s")
| > datafile=strcat(filename,".dat")
| > load datafile

could become just

  load (strcat (input ("Data File: ", "s"), ".dat"));

reply via email to

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