フィルターのクリア

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 Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by