What are the index subscripts (row, column) for the 454th element in matrix M
1 view (last 30 days)
Show older comments
What are the index subscripts (row, column) for the 454th element in matrix M
3 Comments
Jan
on 31 Aug 2017
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?
Answers (1)
Chad Greene
on 31 Aug 2017
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 Comments
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!