[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.
- pb with oct file, return a matrix, Alain Baeckeroot, 2009/04/22
- pb with oct file, return a matrix, John W. Eaton, 2009/04/22
- Re: pb with oct file, return a matrix,
Alain Baeckeroot <=
- Re: pb with oct file, return a matrix, John W. Eaton, 2009/04/22
- Re: pb with oct file, return a matrix, Alain Baeckeroot, 2009/04/23
- Re: pb with oct file, return a matrix, Jaroslav Hajek, 2009/04/23
- Input redirection (was: Re: pb with oct file, return a matrix), Søren Hauberg, 2009/04/23
- Re: pb with oct file, return a matrix, Alain Baeckeroot, 2009/04/24