フィルターのクリア

To find variable storing max and min value

2 ビュー (過去 30 日間)
Akshay Math
Akshay Math 2020 年 2 月 26 日
コメント済み: Adam 2020 年 2 月 26 日
I have three variables say a=1 b=2 c=3 i want to find the variable storing minimum and maximum value so how to write the matlab code in matlab function block
  1 件のコメント
Adam
Adam 2020 年 2 月 26 日
If the values are comparable enough for min and max across them to mean something then you should put them all in a single array, then simply return the indices into that array with
[~, idxMin] = min( myArray );
[~, idxMax] = max( myarray );

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by