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 Center および File ExchangeMatrix Indexing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by