Matlab
Matlab. Programming, part 2. Multidimensional Arrays. Arrays with more than two subscripts >> p = perms(1:4); >>A = magic(4); >>M = zeros(4,4,24); >> for k = 1:24 M(:,:,k ) = A(:,p(k ,:)); end. reshape. reshape : used to change the shape of matrices >> x =[1 2 3 4 5 6 7 8] x =
530 views • 31 slides