フィルターのクリア

How to get the cell number with the maximum value of a vector with Simulink

1 回表示 (過去 30 日間)
Dani Tormo
Dani Tormo 2012 年 11 月 5 日
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.

採用された回答

Pedro Villena
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

その他の回答 (1 件)

Dani Tormo
Dani Tormo 2012 年 11 月 5 日
Thanks man! I couldn't find this box.

製品

Community Treasure Hunt

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

Start Hunting!

Translated by