how to find minimum value non zero elements in 3d matrix
이전 댓글 표시
want to calculate minimum of nonzero value of 3d matrix
답변 (1개)
Kevin Chng
2018년 9월 6일
편집: Kevin Chng
2018년 9월 6일
Hi, Sneha patil,
you may use the method as below:
The minimum value of all the integers higher than 0:
M=rand(2,2,3);
min(M(M>0))
The minimum value of all the non-zero integers.
M=rand(2,2,3);
min(M(M~=0))
카테고리
도움말 센터 및 File Exchange에서 Aerospace Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!