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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

we have an energy meter in a capacitor bank panel, So should we consider it's readings as energy consumption on daily basis. (when capacitor bank doesn't have any energy losses)

1911


How to calculate no of EARTH PIT? Describe the formula as per IS standard?

1566


Why the standard of ambient teperature mentioned as 40 degree celcius in machines.

1446


What is the difference between acs 550 & acs 850

5359


Why power factor should not be in leading (capacitive) mode of any load.

5833






Formulae for calculating the transmission line losses for different voltage levels

1607


WHY THE DIMENSION OF TWO SAME RATED MACHINE IS DIFFERENT ?

1494


I meggared my 2c*70 sq mm AL AR XLPE cable. its one end show 50 M ohm . is my cable is safe for laying. I have only one phase and neutral.

1330


What is magneto on a gas generator. how it functions. its out put is d.c or a.c. how it can be checked for correct functioning

1411


what shall be no load voltage of 132/33 kV transformer ? is it 33 kv of 34.5 kV

1707


should %impedance be high or low in a power transformer? if so why?

1475


how to design step down 12 V, 1mA small transformer from 220 V AC? Because according to VI relation and power transfer it results bulky...

1667


How many types of probe used in cro?

655


How to Calculate the Fault Level of Electrical Installation

1746


in science exhibition how lamp can blink when you clap near the lamp ? thank you

1485