Switch

signal.switch

Passes u1 while the control input c is above the threshold, else u2.

Ports

NameDomainDirection
u1signalin
u2signalin
csignalin
ysignalout

Parameters

NameUnitDefaultDescription
threshold10.5Switching level of c

Equations

y = if c > threshold then u1 else u2