Reproducing this error is pretty easy:

octave:1> x = resample(zeros(2, 40), 4, 1);
error: resample: A(I,J): row index out of bounds; value 306 out of bound 296
error: called from:
error:   /opt/octave/share/octave/packages/signal-1.0.11/resample.m at line
119, column 3

I think it is caused by assigning "Lx = length(x);" when x is a rectangular
matrix with more rows than columns.  Changing that to rows(x) avoids the
problem.  Is that the correct fix?

Michael Poole
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to