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 日

2 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Modeling についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by