フィルターのクリア

Assign specific index to a matrix

1 回表示 (過去 30 日間)
fatoma Saml
fatoma Saml 2021 年 1 月 26 日
編集済み: David Hill 2021 年 1 月 26 日
I have a matrix 4x5 like this:
x=[1 3 5 7; 4 2 1 2; -1 3 5 4; 3 -2 6 7; 2 3 1 1];
how to add A as an index to the above matrix A=[0; 2; 5; 6; 9] so I get the following result:
0 1 3 5 7
2 4 2 1 2
5 -1 3 5 4
6 3 -2 6 7
9 2 3 1 1;;
how to subtract one row element with other rows elements?

回答 (1 件)

David Hill
David Hill 2021 年 1 月 26 日
編集済み: David Hill 2021 年 1 月 26 日

カテゴリ

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