MATLAB 帮助中心
Add existing event to fault tree gate
Since R2026b
addEvent(gate,event)
addEvent(gate,event) adds the event event as an input to the gate gate in a Safety Analysis Manager fault tree.
gate
event
example
collapse all
Create a fault tree document.
myTreeDoc = safetyAnalysisMgr.newDocument("fault-tree");
The new document contains one fault tree. Retrieve the FaultTree object from the document.
FaultTree
myFaultTree = myTreeDoc.FaultTrees(1);
Add five events to the fault tree document without assigning them as inputs to gates.
numberOfEvents = 5; for n = 1:numberOfEvents myEvent(n) = createEvent(myTreeDoc); end
Add the first event to the top-level gate.
addEvent(myTopGate,myEvent(1))
Gate
Gate in the Safety Analysis Manager fault tree document, specified as a Gate object.
Event
Event in the Safety Analysis Manager fault tree document, specified as an Event object.
Introduced in R2026b
createEvent
deleteEvent
getEvent
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处