how create a new matrix with values found in an another matrix
이전 댓글 표시
Hi, I've the matrix A with dimension (m*n*p). I've found the indexes of the first non-zero elements along the dimension p. They are stored in I with dimension m*n. I would create a new matrix B with dimension m*n with the values corresponding to the indexes I taken in A.
Thanks, Gianluca
댓글 수: 2
Azzi Abdelmalek
2012년 9월 22일
what if you have'nt n*m non zeros elments, can you explain?
gianluca
2012년 9월 22일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!