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
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
