If a = 3*3 Matrix then how do I index row 1,2,3 & column 1,3 ?

2 ビュー (過去 30 日間)
Kazi Belayet Hossain
Kazi Belayet Hossain 2015 年 7 月 10 日
編集済み: Azzi Abdelmalek 2015 年 7 月 10 日
A =
0.8147 0.9134 0.2785
0.9058 0.6324 0.5469
0.1270 0.0975 0.9575
>> A(2:2,2:3)
ans =
0.6324 0.5469
>> A(2:3,2:3)
ans =
0.6324 0.5469
0.0975 0.9575
>> A(3:3,3:3)
ans =
0.9575
>> A(1:3,3:3)
ans =
0.2785
0.5469
0.9575
>> A(1:3,1 3)
A(1:3,1 3)
Error: Unexpected MATLAB expression.
>> A(1:3,1:3)
ans =
0.8147 0.9134 0.2785
0.9058 0.6324 0.5469
0.1270 0.0975 0.9575
>> A(1:3,1;3)
A(1:3,1;3)
Error: Unbalanced or unexpected parenthesis or bracket.

採用された回答

bio lim
bio lim 2015 年 7 月 10 日

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