How to get the cell number with the maximum value of a vector with Simulink
2 次查看(过去 30 天)
显示 更早的评论
Hello everybody!
I am trying to get the number of the cell with the maximum value of a vector.
I know to do this in matlab using the command [value, cell_number] = max(vector(1,:)).
I need the "cell_number" value.
How to get it in Simulink?
Many thanks, Daniel.
0 个评论
采纳的回答
Pedro Villena
2012-11-5
编辑:Pedro Villena
2012-11-14
Convert virtual bus to vector.
Simulink >> Signal Atributes >> Bus to Vector Block
Find maximum values in input or sequence of inputs http://www.mathworks.es/es/help/dsp/ref/maximum.html
DSP System Toolbox >> Stadistics >> Maximum Block
0 个评论
更多回答(1 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!