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!