Accessing a cell in a 2D grid
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi all,
I have a 2D grid as shown below where each cell represents a pair of
and
where
and
. I would like to construct a new index that combines these two indices to run over all of the cells as a one continous number.





Any help would be appreciated.
Thanks.
댓글 수: 0
답변 (1개)
Cris LaPierre
2021년 7월 3일
댓글 수: 6
dpb
2021년 7월 4일
Yet again, however, I'd almost wager it isn't the most fruitful approach to the problem...
참고 항목
카테고리
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!