if else if else statement

조회 수: 1 (최근 30일)
ashwani gupta
ashwani gupta 2019년 5월 6일
댓글: ashwani gupta 2019년 5월 6일
Hi, i am using If elseif else statement in simulnk. I am getting the output till elseif but not getting the third condtion. Apart from this the blocks are aonly having three conditions , but if i want to impliment more condition, then how to impliment it ?
  댓글 수: 2
Raj
Raj 2019년 5월 6일
Regarding first part of your question, you'll have to share your model. Its difficult to debug/ comment without looking at the model.
For your second question, you can use "switch case" block to implement multiple conditions. See details here.
ashwani gupta
ashwani gupta 2019년 5월 6일
this is the link of model, if you are not able to download it please tell me how to share you the model directly ?

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

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 5월 6일
If you use the multiple ifelse with comma, as mentioned below, is there any issue?
ol.png
Detail read here

카테고리

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

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by