Comparison 4 numbers without using if action in simulink
Afficher commentaires plus anciens
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?
Réponses (2)
Kiran Kintali
le 28 Août 2023
1 vote
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.
1 commentaire
Arwa Salem
le 29 Août 2023
Catégories
En savoir plus sur HDL Coder dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!