Filter löschen
Filter löschen

how to find the minimum value of the wholw matrix?

175 Ansichten (letzte 30 Tage)
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar am 10 Okt. 2018
Beantwortet: Stephen23 am 10 Okt. 2018
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.

Akzeptierte Antwort

madhan ravi
madhan ravi am 10 Okt. 2018
Bearbeitet: madhan ravi am 10 Okt. 2018
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))

Weitere Antworten (1)

Stephen23
Stephen23 am 10 Okt. 2018
This works for any size array:
min(A(:))

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by