What is difference between min and min(min) ?

10 ビュー (過去 30 日間)
Dani D
Dani D 2016 年 4 月 13 日
コメント済み: John D'Errico 2023 年 5 月 10 日
Hello,
[m,n]=size(x);
Min=min(min(x));
vs
Min = min(x);
  3 件のコメント
sam
sam 2023 年 5 月 10 日
[m,n]= size(A);
Min = min(min(A));
this is not working for me
John D'Errico
John D'Errico 2023 年 5 月 10 日
@sam - Never just say something like "this is not working for me", and nothing more.
Since it DOES work, you need to say what it did do. If you got an error, then report the ENTIRE error message, so everything in red. If it did something strange, then say what it DID do, not just that it did not work.
Would you call up your doctor and ask (over the phone) for a diagnosis of your ailment, but not give a hint of what the ailment might be to the poor doctor? Would you ask your local auto mechanic to tell you what is wrong with your car, without seeeing the car, and without even telling the mechanic anything more than that your car won't start?

サインインしてコメントする。

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 13 日
編集済み: Azzi Abdelmalek 2016 年 4 月 13 日
Just try it you will understand
A=[1 2 3;4 5 6]
m=min(A) % give the minimimum of each column
n=min(min(A)) % is the minimum of the result m
%or instead of using min(min(A)) you can use
B=A(:);
out=min(B)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by