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

What is rotor angle stability?

2 Answers  


What are the applications of autotransformers?

0 Answers  


what is ring main unit(Rmu)? what is its function

1 Answers  


why capacitor burst?

2 Answers  


WHAT R THE SAFETIES IN A HIGH TENSION PANEL N LOW TENSION PANEL. ALSO WAT SAFETIES R THERE IN A 200 KVA TRANSFORMER?

0 Answers  






Find active & Reactive Power transmitted in a transmisston line having Vs30 degree(sending end) to Vr(zero degree)at receving end with line inductance X ohm. Vs(30degree)-------------------Vr(zero degree) X ohm

3 Answers  


Transformer cores are laminated in order to A simplify its construction B minimize eddy current loss C reduce cost D reduce hysterisis loss

0 Answers  


how can we select the rating of Load break switch that is connected to the primary protection of 200 kva 11kv/415v distribution transformer?? step by step calculated answr pls...thnk.u

2 Answers   Maruti Suzuki,


What are your future plans for the company if permanently employed?

0 Answers  


what is circuit recombiner and how it is different from circuit breaker

0 Answers  


how a single machine can act as both motor and generator? and give explanation interms of connections?

1 Answers  


A 200W,230V lamp is connected across 115V supply.The lamp will draw power?

6 Answers   SJVN, TCS,


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)