help-octave
[Top][All Lists]
Advanced

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

Re: split program into two parts


From: Jaroslav Hajek
Subject: Re: split program into two parts
Date: Tue, 20 Jan 2009 14:23:48 +0100

On Mon, Jan 19, 2009 at 10:02 PM, muka <address@hidden> wrote:
>
> Hi,
>
> I would like to split my program into two files, automatically generated
> data arrays(generated
> with  perl) and the actual code. How can this be done?
>
> Ideally I would like to have something like
> "#include data.octave"
> in the code.
>
>
>

"source" is the equivalent to #include. But, if the perl generated
part is really only data (no code),
I suggest you consider generating data directly in Octave's ASCII
format and then load them using "load".
That will probably be much faster than sourcing a script.

cheers

-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

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