help-octave
[Top][All Lists]
Advanced

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

Re: variable interpolation


From: Simon Webster
Subject: Re: variable interpolation
Date: Tue, 28 Mar 2006 16:42:46 +0200

On 28/03/06, Hartmut Behrens <address@hidden> wrote:
> Hi all,
>
> Is it possible to do the following (see below) in octave ? If so, how ?
>
> function [U] = incremental(k)
> load seq+`k`.txt
>
> instead of
>
> function [U] = incremental(k)
> if (k == 1)
>   load seq1.txt
> end
> if (k == 2)
>   load seq2.txt
> end
> ...
>
> Kind Regards,
>
> Hartmut Behrens

Try load(['seq' num2str(k) '.txt'])

Simon



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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