フィルターのクリア

When I use the MinMax block in simulink, how can I determine the index of the MinMax value?

5 ビュー (過去 30 日間)
Ashraf Omran
Ashraf Omran 2017 年 5 月 31 日
コメント済み: Ashraf Omran 2017 年 6 月 8 日
When I use the for loop block in Simulink. I generate an array from the for loop. After that, I apply the min to find the minimum of the array. I would like to know what index is corresponding to this minimum value.

回答 (1 件)

Don Zheng
Don Zheng 2017 年 6 月 8 日
Try the Logical Operator block and the Find Nonzero Elements block.
  1 件のコメント
Ashraf Omran
Ashraf Omran 2017 年 6 月 8 日
Thank you Don. You are using the same way that I am using. I was thinking about a built-in-block in Simulink to do so. For example, when we use y = min(x) we can extended to [y,i]= min(x). I was looking for the same in Simulink. May be in the upcoming version, we will have that option.

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

カテゴリ

Help Center および File ExchangeSources についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by