主要内容

deleteFaultTree

R2026b

Delete fault tree from fault tree document

Since R2026b

Description

deleteFaultTree(faultTreeDocument,topGateLabel) deletes the fault tree that has the top-level gate label topGateLabel from the Safety Analysis Manager fault tree document faultTreeDocument.

example

Examples

collapse all

Create a new fault tree document in the Safety Analysis Manager.

myTreeDoc = safetyAnalysisMgr.newDocument("fault-tree");

The new document contains one fault tree. Create another fault tree.

myNewTree = createFaultTree(myTreeDoc);

The top-level gate of a fault tree is the first gate in the Gates property of the FaultTree object. Get the label for the top-level gate of the new tree and delete the fault tree.

topLabel = myNewTree.Gates(1).Label;
deleteFaultTree(myTreeDoc,topLabel);

Input Arguments

collapse all

Fault tree document in the Safety Analysis Manager, specified as a FaultTreeDocument object.

Top-level gate label, specified as a string scalar or character vector.

Data Types: string | char

Version History

Introduced in R2026b