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

why do fans generally rotate in anti clock wise direction??

2 Answers   BMS, FIS, IBM,


phase clearance between phase to phase and earth

11 Answers  


How can you measure the signal from the PT100 sensor?

1 Answers  


why fan consume constant power even when we increase or decrease its circuit resistance through speed regulator???

2 Answers  


Differenciate between circuit wiring and sub main wiring with illustrations

0 Answers   MU,






Hi, what is 100 % stator earth fault protection and how it can be achieve by 3rd harmonics and low frequency injection principle ?

1 Answers  


in railways why we use the power in 10,20 30kv,why not in the multiple of 11kv

2 Answers  


why battery set is required for D.G.set?

7 Answers  


which course is maximum demand in industry and give me the list of best courses for electrical engineers

1 Answers  


Please tell me what is the difference between online UPS & OFF line UPS?

2 Answers   HAL,


The maximum demand of consumer is 2 kW and his daily energy consumption is 20 units. Its Load Factor is (1) 10.15% (2) 41.6 % (3) 50 % (4) 60%

2 Answers  


Classify the different types of load.

6 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4452)
  • Electrical Engineering Interview Questions Electrical Engineering (16636)
  • 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)