Matrix in the bracket equal another matrix
Afficher commentaires plus anciens
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
Réponses (1)
Steven Lord
le 24 Fév 2020
0 votes
See this blog post and the section "Indexing with a Single Index" on this documentation page for an explanation of linear indexing.
1 commentaire
Yaser
le 26 Fév 2020
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
