Need a help on simulink block

조회 수: 12 (최근 30일)
Sukumar Paul
Sukumar Paul 2012년 6월 18일
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에서 Subsystems에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by