Say I have two matrices A = [4 5 2 3 1] and B = [1 2 3 4 5]
Can anyone please tell me what is the command blow gives and how is calculating?
C(A) = B
Thanks

回答 (1 件)

Steven Lord
Steven Lord 2020 年 2 月 24 日

0 投票

See this blog post and the section "Indexing with a Single Index" on this documentation page for an explanation of linear indexing.

1 件のコメント

Yaser
Yaser 2020 年 2 月 26 日
Thanks for replying Steven
Not sure if this linear indexing, Below a screenshot if the results.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

質問済み:

2020 年 2 月 24 日

コメント済み:

2020 年 2 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by