필터 지우기
필터 지우기

How to implement multiple output condition using outport and switch?

조회 수: 2 (최근 30일)
Sohail Khan
Sohail Khan 2019년 5월 16일
편집: Sohail Khan 2019년 6월 25일
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일
편집: 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
Sohail Khan
Sohail Khan 2019년 5월 17일
Can u give any example, how to implement such type of code?

댓글을 달려면 로그인하십시오.

답변 (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