if else if else statement

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 日

0 投票

If you use the multiple ifelse with comma, as mentioned below, is there any issue?
ol.png
Detail read here

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

製品

リリース

R2017b

質問済み:

2019 年 5 月 6 日

コメント済み:

2019 年 5 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by