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
Name-Value Arguments
Output Arguments
Tips
To add behavior to a fault, use the
addBehaviorfunction.To specify the trigger type, use dot notation and specify the
TriggerTypeproperty.
Version History
Introduced in R2023b