Matrix in the bracket equal another matrix

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 Exchange에서 Matrix 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