The largest and smallest numeric value in the array

조회 수: 3 (최근 30일)
Sanja
Sanja 2014년 9월 15일
댓글: Sanja 2014년 9월 16일
I have some of the numerical values in the matrix containing the image. How I can find the largest and smallest numeric value in the array?

채택된 답변

Sean de Wolski
Sean de Wolski 2014년 9월 15일
max() and min()
  댓글 수: 2
Adam
Adam 2014년 9월 15일
and
max( data(:) )
min( data(:) )
if your data is n-dimensional.
Sanja
Sanja 2014년 9월 16일
Yes, thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by