Simulink.fault.addFault
Syntax
Description
adds a fault to the model element input or output port,
fault
= Simulink.fault.addFault(modelElement
)modelElement
.
specifies additional properties for a fault using one or more name-value arguments.fault
= Simulink.fault.addFault(modelElement
,Name=Value
)
Examples
Input Arguments
Output Arguments
Tips
To add behavior to a fault, use the
addBehavior
function.To specify the trigger type, use dot notation and specify the
TriggerType
property.
Version History
Introduced in R2023b