unexpected behavior of +=

Claudio Belotti claudio.belotti at gmail.com
Fri Jun 12 05:43:47 CDT 2009


On Fri, Jun 12, 2009 at 11:36, Jaroslav Hajek<highegg at gmail.com> wrote:

> This is OK. A(idx) += 1 means exactly A(idx) = A(idx) + 1.

yes, now I understand it

> A = accumarray (idx, 1, [2, 2]);
thanks!


More information about the Help-octave mailing list