How to model "IF ELSE" statement in matlab simulink?

Answers were Sorted based on User's Feedback



How to model "IF ELSE" statement in matlab simulink?..

Answer / kosal ram

use two switches, or u can use the if block in the simulink.

Is This Answer Correct ?    9 Yes 6 No

How to model "IF ELSE" statement in matlab simulink?..

Answer / rachit kumar

An optimized solution will depend upon the test condition
of IF-ELSE loop. For example if the condition is relational
then you can use "Relational Operator" Block connected
with "Switch" block. Similarly the blocks can be changed
based on requirement.

Is This Answer Correct ?    3 Yes 1 No

How to model "IF ELSE" statement in matlab simulink?..

Answer / karthik

Go for State flow block

Is This Answer Correct ?    2 Yes 0 No

How to model "IF ELSE" statement in matlab simulink?..

Answer / anamika

you can use transition and junction.
at first take condition through first transition and if
this is satisfied then take the action part and if it is
not satisfied then take another transition and then connect
a common transition to tarminate the statement.

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More Electrical Engineering Interview Questions

i have one ground earth for my shop but now he showing 11v how ever my machine engineer said that he require less than 3v how can we reduce it, i have put 8 bucket salty water in it

1 Answers  


percetans

0 Answers   Bhel,


how synchronous generator can be used as synchronous condenser?

3 Answers   Monnet, Wipro,


heat can flow from a body at low temperature to a body at higher temperature only when ........ is supplied from an external source A). Voltage B). Current C). work D). Mass

7 Answers   BMRCL,


electricity bill multiplication factor 487.20xconsumption=total unit in kwh. what is 487.20 ?

1 Answers   Spec International,






what is the function of DC panel in substation?

4 Answers  


what main difference betwenn invetter & ups & major difference

2 Answers   ABB,


define stator,rotor,excitor,rotating rectifier in generator?

1 Answers   Saudi Oger,


how we control the magnitude of a generator output

2 Answers   EESINT,


what is "pu" in electrical engg.

4 Answers  


How the over load setting for HT Motors calculated-provided in Numerical Relay

0 Answers   Damodar Valley Corporation,


why three phase capacitor takes unbalanced current in capacitor bank?

0 Answers   Aggreko,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)