Using if function block in MATLAB Simulink

조회 수: 11 (최근 30일)
Jupin Sat
Jupin Sat 2015년 4월 5일
댓글: hamza ünsal 2018년 8월 29일
I have created the following block diagram on Matlab Simulink. It should give OUT1=1 OUT2=0 when INPUT>=0 and OUT1=0 OUT2=1 when INPUT<0. But it does not give the expected results. What is the reason for that. Any advice to make it work correctly would be appreciated.

답변 (1개)

Sebastian Castro
Sebastian Castro 2015년 4월 5일
You should use a Merge block with the outputs of the "if" and "else" subsystems, and then look at the signal coming out of that block.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by