help-octave
[Top][All Lists]
Advanced

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

Re: pb with oct file, return a matrix


From: Alain Baeckeroot
Subject: Re: pb with oct file, return a matrix
Date: Wed, 22 Apr 2009 18:30:28 +0200
User-agent: KMail/1.9.9

Le 22/04/2009 à 17:50, John W. Eaton  écrit :
> 
....
> 
> Does it work if you simplify your function to be just the following:
> 
>   DEFUN_DLD( boucle_cc, args, nargout, "usage : rMat = boucle_cc(..)\n") {
>         int NDATA=10000;
>         Matrix rMat(NDATA, 22, 0.0);  // results
>         octave_value_list retval;   // list of return values
>         retval(0) = rMat;
>         return retval;
>   }

yes it works.

> ?  If so, then I'd guess that you have some problem in the
> 
> |     ...compute and put everything in rMat...
> 
> part.  Given the error message you see, I'd guess that you are writing
> outside the bounds of the rMat array.  But that's just a guess.

i'm digging this way.
Thanks
Alain.




reply via email to

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