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

Respuestas (1)

Steven Lord
Steven Lord el 24 de Feb. de 2020

0 votos

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

1 comentario

Yaser
Yaser el 26 de Feb. de 2020
Thanks for replying Steven
Not sure if this linear indexing, Below a screenshot if the results.

Iniciar sesión para comentar.

Categorías

Preguntada:

el 24 de Feb. de 2020

Comentada:

el 26 de Feb. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by