MATLAB: I have 3*3 Matrix. I have to save these matrix into 3*1 form means i have to save only (1,3) (2,3) and (3,3). other (1,1), (1,2)………(2,3) remove.

cell arraysMATLABmatrix arraymatrix manipulation

S
S = (:,:,1:20)

Best Answer

S2 = S(:,3,:);
This indexing means something like (all rows, third column only, all 3D). This means S2 will be a 3x1x20 array of type double.
Hope this helps.
Related Question