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
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
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.

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by