How to adjust the value of something using if-else logic in Simulink

조회 수: 18 (최근 30일)
James Parkus
James Parkus 2019년 6월 4일
답변: Raghunandan V 2019년 6월 6일
Hi,
I am trying to have a value of an input change based on a if-else condition in Simulink and I cannot find a good video to help.
I am trying to evaluate an equation with a variable input that changes instanteously. So the angle should start at 45 deg then when a condition is met, the angle should change to 0 deg. I have been trying to learn stateflow but all the videos I am finding are way above my level of understanding. I can't find a good intro to just learning basic logic. Can someone help me figure this out?
Thanks,
James

답변 (1개)

Raghunandan V
Raghunandan V 2019년 6월 6일
Hi,
Try using switch block from simulink library

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by