help-octave
[Top][All Lists]
Advanced

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

Re: an array[count] in octave ?


From: Jaroslav Hajek
Subject: Re: an array[count] in octave ?
Date: Tue, 27 Jan 2009 10:37:06 +0100

On Tue, Jan 27, 2009 at 10:25 AM, Allahyari Rahim <address@hidden> wrote:
> hell,
>
> How can i declare an array [Num]
>
>
>
> int Num=1000;
>
> double array[Num]
>
>
>
>  In octave function
>
>
>
> DEFUN_DLD(MyOctave, args , , "")
>
> {
>
>             octave_value retval;
>
>            …..
>
>            …..
>
>             int count=MyFunction (array, Num);
>
>             …..
>
>              return retval;
>
> }
>
> best regards
>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
>

A dynamic array is created by
Array<double> array (num);
and indexed by round braces ().
Octave also provides a mechanism for efficient temporary buffers, i.e.
raw C arrays that only exist in the current scope, via the
OCTAVE_LOCAL_BUFFER macro.

regards

-- 
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]