How to implement multiple output condition using outport and switch?

2 次查看(过去 30 天)
Here the code I want model in simulink:
if(x==0 and y==0)then
x=1;
y=2;
else
x=2
y=3
z=0
endif
I want model above code using switch,inport and outport.Can anyone help out with some example?
  2 个评论
Arvind Sathyanarayanan
编辑:Arvind Sathyanarayanan 2019-5-16
Sohail,
What have you tired so far? Simulink has relational & logical operators block which can used to implement your code.
If you're new to simulink, I would recommend going through the on-ramp

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

产品


版本

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by