octave-maintainers
[Top][All Lists]
Advanced

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

patch for loops over multi-dimensional matrices and cell arrays plus doc


From: John W. Eaton
Subject: patch for loops over multi-dimensional matrices and cell arrays plus documentation thereof
Date: Thu, 26 Apr 2007 16:10:06 -0400

On 26-Apr-2007, David Bateman wrote:

| There is a minor bug that can be seen with the example
| 
| a = [1,3;2,4]; b = cat(3,a,2*a);
| for i = b
|   i
| end
| 
| which reshapes b like reshape (b, rows(b), prod(size(b)(2:end))) and
| then loops over the columns of the matrix. This is the matlab compatible
| behavior, and what I remember was the behavior we had a few years back.
| The patch also documents this behavior, and adds a couple of tests.

OK, please check in this change.

Thanks,

jwe


reply via email to

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