Simulink (switch)

2 次查看(过去 30 天)
m_vdv
m_vdv 2019-4-2
编辑: Jim Riggs 2019-4-2
I built 2 differential equations in Simulink (see attachment). How can I combine both of them using the switch block?
If x>-0.1, the upper one has to be my output and if x<-0.1, the lower one has to be my output.
Thanks in advance

回答(1 个)

Jim Riggs
Jim Riggs 2019-4-2
编辑:Jim Riggs 2019-4-2
This problem may be complicated since you have 2 different definitions of x. However, based on what you asked for, this should work.
The upper signal is passed through whenever f1(x) is greater than -0.1. If f1(x) <= -0.1, the lower signal is passed through.
Note that the switch will always use the value of f1(x) to determine which value to pass.

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by