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

sir please tel me how calucalte kwh if home taken load 30ams how maney kwh taken per day.and 3phase motor 5hp per hars how maney load teken and how mach kwh and forward me to electrical table for calicalte kwh and kvr and kvah

1 Answers  


hopkinson's test

5 Answers   Bhel, NTPC,


how to find impedance , mutual indatnce in transmission lines

0 Answers   NTPC,


what are the duties of commutator in motor and generator?

6 Answers   L&T,


In 3phase power= Root*3*v*i*cos@ What is the power in 2phase....??? and Derive it

3 Answers   Essar,






How many 2 ton window A/c can runs on a 125 KVA generator?

2 Answers  


How I calculate the ELCB for circuit breakers?

0 Answers  


how to determine the inrush current of a transformer

0 Answers  


why we use perllel conection system in the wiring?

4 Answers   Airtel,


why chock were used in old tubelights but are not newest tubelights?

0 Answers  


in a refinery one motor is suddenly stoped. what will do how can i findout the problem explain step by step

2 Answers  


When a fourth resistor is connected in series with three resistors, the total resistance

1 Answers   ITI,


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