>> i = 1:3;for k = i s = num2str(k); m = num2str(k+1); p = num2str(k-1); ss = ['T' s '=[']; ss = [ss s ',' m ';' p ',' s ']']; eval(ss);end;T1 = 1 2 0 1T2 = 2 3 1 2T3 = 3 4 2 3
for i =1:3A(:,:,i) = [i,i+1;i-1,i];end