Simulink.fault.deleteAll
Description
Simulink.fault.deleteAll(
deletes the faults or conditionals using one or more name-value arguments.model
,Name=Value
)
Examples
Input Arguments
Name-Value Arguments
Tips
To delete only a specified fault or conditional, use the Simulink.fault.deleteConditional
and Simulink.fault.deleteFault
functions.
Algorithms
This function may delete the fault information file and fault model depending on how you specify the name value arguments:
Conditionals Setting | Faults Setting | Result |
---|---|---|
true | true | The function deletes the fault model and the fault information file. |
false | true | If the model has conditionals, the function retains the fault information file but deletes the fault model. If the model does not have conditionals, the function deletes both files. |
true | false | If your model has faults, the function keeps both files. If the model does not have faults, the function deletes the fault information file. |
false | false | The function does nothing |
For more information on the supporting files, see Define and Model Faults.
Version History
Introduced in R2025a