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

Michael Chen vancouver.michael at gmail.com
Wed Oct 1 13:02:22 CDT 2008


thanks, it works very well. maybe it is also documented in the manual?
would you please point it to me, so I can understand better?

Sincerely yours,
Michael

On Wed, Oct 1, 2008 at 12:12 PM, Jordi Gutiérrez Hermoso
<jordigh at gmail.com> wrote:
> 2008/10/1 Michael Chen <vancouver.michael at gmail.com>:
>> 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
>
> Try to use the functional form of the call:
>
>     load("-ascii",filename)
>
> HTH,
> - Jordi G. H.
>



More information about the Help-octave mailing list