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.

1 view (last 30 days)
S
S = (:,:,1:20)

Accepted Answer

Kirby Fears
Kirby Fears on 16 Oct 2015
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.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!