pb with oct file, return a matrix
Alain Baeckeroot
alain.baeckeroot at laposte.net
Wed Apr 22 11:30:28 CDT 2009
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.
More information about the Help-octave
mailing list