Is it possible to slice 3'rd line (tt)? This code is simplified, but the problem is similar. I am using multiplied iterator (3*i) in array index, however it doesn't work. Maybe it is possible to change it somehow.
parfor i = 1 : NE
tmp = i * [1, -1; -1, 1];
tt(3*i-1:3*i+1) = tmp([3,2,4]);
pp(i) = tmp(1,1,i);
end;
Thanks :)