When I use the MinMax block in simulink, how can I determine the index of the MinMax value?
Show older comments
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.
Answers (1)
Don Zheng
on 8 Jun 2017
1 vote
Try the Logical Operator block and the Find Nonzero Elements block.

1 Comment
Ashraf Omran
on 8 Jun 2017
Categories
Find more on Discontinuities in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!