What are the index subscripts (row, column) for the 454th element in matrix M
1 次查看(过去 30 天)
显示 更早的评论
What are the index subscripts (row, column) for the 454th element in matrix M
3 个评论
Jan
2017-8-31
Is this a homework? Then mention this, because then a specific kind of answering is useful. Do you want to get the 2 values? Or some code to produce them? Or do you want some hints, such that you can write the code by your own and submit it without cheating?
回答(1 个)
Chad Greene
2017-8-31
That depends on the size of the matrix M. If you know the size of M, use ind2sub to find out the row and column.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!