can i pleas be helped on the following code i dnt understand the outpu

1 回表示 (過去 30 日間)
KARABO DANIEL
KARABO DANIEL 2021 年 6 月 25 日
編集済み: Stephan 2021 年 6 月 25 日
A=[2 4 10 13;16 3 7 18;8 4 9 25;3 12 15 17]
B=[-1 4 -5 10;6 13 11 -5;-3 12 0 2;2 12 -5 8]
A(4:8)

回答 (1 件)

Stephan
Stephan 2021 年 6 月 25 日
編集済み: Stephan 2021 年 6 月 25 日
A=[2 4 10 13;16 3 7 18;8 4 9 25;3 12 15 17]
A = 4×4
2 4 10 13 16 3 7 18 8 4 9 25 3 12 15 17
A(4:8)
ans = 1×5
3 4 3 4 12
You need to understand linear indexing in Matlab:

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by