Borrar filtros
Borrar filtros

Comparison 4 numbers without using if action in simulink

1 visualización (últimos 30 días)
Arwa Salem
Arwa Salem el 27 de Ag. de 2023
Comentada: Arwa Salem el 29 de Ag. de 2023
I designed a model simulink to find an index of maximum number among 4 numbers, using if action can help me, but the problem is I need to transfer the model into the VHDL code using hdl coder which is not support if action. can someone help me to find a way without using if action, please?

Respuestas (2)

Kiran Kintali
Kiran Kintali el 28 de Ag. de 2023
In case you are using Simulink and have access to DSP System Toolbox, max block from the library also provides an optional second output that computes the index where maximum is found.

Walter Roberson
Walter Roberson el 27 de Ag. de 2023
Use a MATLAB Function Block and call max and examine the second output.

Categorías

Más información sobre HDL Coder en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by