what is wrong with my script?

1 回表示 (過去 30 日間)
Manuj Sharma
Manuj Sharma 2020 年 1 月 31 日
編集済み: Adam 2020 年 1 月 31 日
A =
0.1270 0.2785 0.1576 0.1270
0.9134 0.5469 0.9706 0.9134
0.6324 0.9575 0.9572 0.6324
0.0975 0.9649 0.4854 0.0975
A(2:4,2:4)
ans =
0.5469 0.9706 0.9134
0.9575 0.9572 0.6324
0.9649 0.4854 0.0975
Ques: Why the answer is not according to what i believe i.e.,
2R2C 4R4C 0.5469 0.0975
4R2C 4R4C 0.9649 0.0975

採用された回答

Adam
Adam 2020 年 1 月 31 日
編集済み: Adam 2020 年 1 月 31 日
2:4
means
[2, 3, 4]
A( [2 4], [2 4] )
would give what you want.

その他の回答 (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