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!