Using if function block in MATLAB Simulink
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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 Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!