필터 지우기
필터 지우기

different output for each condition

조회 수: 1 (최근 30일)
Seungkyu Park
Seungkyu Park 2016년 7월 8일
답변: Seungkyu Park 2016년 7월 8일
How can I model below code segment with simulink blocks?
subsystem input: i1, i2, i3 subsystem output: o1
logic:
if i3 < i1 // less than i1
o1 = 1
else if i3 > i1 and i3 < i2 // b/w i1 and i2
o1 = 2
else // more than i2
o1 = 3
end
so many thanks

채택된 답변

Seungkyu Park
Seungkyu Park 2016년 7월 8일
I was advised to use switch blocks to set the output. Thanks

추가 답변 (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