How to return the value of the second column elements of a matrix by use indexing command?
When the matrix is
mat_a = [1,-3;4,6];
mat_c = [mat_a mat_a;mat_a mat_a]

 採用された回答

Alan Stevens
Alan Stevens 2021 年 3 月 14 日
編集済み: Alan Stevens 2021 年 3 月 14 日

1 投票

mat_c(:,2)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

2021 年 3 月 14 日

編集済み:

2021 年 3 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by