help-octave
[Top][All Lists]
Advanced

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

load -ascii strcat(int2str(2001), "data.txt")


From: Michael Chen
Subject: load -ascii strcat(int2str(2001), "data.txt")
Date: Wed, 1 Oct 2008 11:16:33 -0400

Dear there, how can I load a data file on fly? Here were what I tried.

--------------------------------------------------------------
octave:30> load -ascii 2001PS.octave

octave:31> load -ascii strcat(int2str(2001),"PS.octave")
parse error:

  syntax error

>>> load -ascii strcat(int2str(2001),"PS.octave")
                                                ^

octave:31> file = strcat(int2str(2001),"PS.octave")
file = 2001PS.octave
octave:32> load -ascii file
error: load: unable to find file file


reply via email to

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