could anyoen help me to understand ,what the command b will select from the matrix a ?
a=[1 3 2 ; 2 1 1 ; 3 2 3]
b= [a(1,2:3);a(2,1:2)]

 採用された回答

M
M 2019 年 12 月 9 日

1 投票

When executing the command it outputs :
b =
3 2
2 1
The command :
b= [a(1,2:3);a(2,1:2)]
selects the first line and column 2 to 3, then second line and column 1 to 2.
See here for more details.

その他の回答 (0 件)

カテゴリ

製品

リリース

R2017b

タグ

質問済み:

2019 年 12 月 9 日

回答済み:

M
M
2019 年 12 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by