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 次查看(过去 30 天)
S
S = (:,:,1:20)

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by