Need a help on simulink block

1 次查看(过去 30 天)
hello, i want to create a code structure like below :
if(x == 1)
x=y;
z = a;
........
else
x = z;
y=a;
..........
which block i can use to generate such kind of code?

采纳的回答

TAB
TAB 2012-6-18
You can implement in many ways...
  1. Using If subsystem, If action subsystem & merge block.
  2. Using Switch block
  3. Using Enabled subsystems

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Create Large-Scale Model Components 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by