필터 지우기
필터 지우기

how to find the minimum value of the wholw matrix?

조회 수: 175 (최근 30일)
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar 2018년 10월 10일
답변: Stephen23 2018년 10월 10일
if i have a matrix for example
if true
% code
A[52 36 85 24 96; 25 25 36 74 65 ; 82 44 55 456 1326 43; 645 684 54 51 40; 54 35 354 45 52]
end
how to find out the minimumvalue of the whole matrix if i dont know the row and column of the min value.

채택된 답변

madhan ravi
madhan ravi 2018년 10월 10일
편집: madhan ravi 2018년 10월 10일
A=[52 36 85 24 96;25 25 36 74 65 ; 82 44 55 456 1326 ; 645 684 54 51 40; 54 35 354 45 52]
min(min(A))

추가 답변 (1개)

Stephen23
Stephen23 2018년 10월 10일
This works for any size array:
min(A(:))

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by