필터 지우기
필터 지우기

Comparison 4 numbers without using if action in simulink

조회 수: 1 (최근 30일)
Arwa Salem
Arwa Salem 2023년 8월 27일
댓글: Arwa Salem 2023년 8월 29일
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?

답변 (2개)

Kiran Kintali
Kiran Kintali 2023년 8월 28일
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 2023년 8월 27일
Use a MATLAB Function Block and call max and examine the second output.

카테고리

Help CenterFile Exchange에서 HDL Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by