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 doesnt the back emf hold the speed of unloaded series motor?

1 Answers  


What is the effect of using an underrated size cable to supply electrical power to a 3 phase ac electrical motor? What is the effect of using an overrated size cable for the same motor?

1 Answers  


If u take a kWh reading in 11 kV HT and 440 LV side at same time in yesterday today , then why LT consumed units 3-4℅ high as compared to HT units

1 Answers   Brigade,


Hi,Any one has idea regarding the KPTCL Recuirtments for AE'e & JE's for the year of 2009-10???Kindly help in regards..

1 Answers  


why the current is denoted by the letter 'i'

1 Answers  






what is the need of representing AC power in sinusoidal waveform? why not in square or rectangular etc...

8 Answers   Lanco,


what is active power and rective power and power factor

1 Answers  


Can we indroduce the principle of single phase induction mator to Transformer? i.e. by Producing rotating flux in the transformer.

0 Answers  


what is function of INVERTER

4 Answers  


What is ac and dc drive.

1 Answers  


Can earth resistance be measured without connecting the earth electrode? and should earthing connections be disconnected What is the effect of connecting two cables of different sizes in parallel with supply? Thanks in Advance. I am intrested to get in touch with some tecnocrats/engineers,my mail i.d is : hiremathvijay@rediffmail.com

1 Answers  


Where do we adjust the setting of thermal over load relay & how cal calulate.

1 Answers   Hilton,


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