how to find minimum value non zero elements in 3d matrix

답변 (1개)

Kevin Chng
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에 대해 자세히 알아보기

질문:

2018년 9월 6일

편집:

2018년 9월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by