MATLAB 帮助中心
Delete conditional from model
Since R2023b
Simulink.fault.deleteConditional(model)
Simulink.fault.deleteConditional(model,name)
Simulink.fault.deleteConditional(model) deletes the conditionals from the model, model.
model
example
Simulink.fault.deleteConditional(model,name) deletes the conditional with the name, name.
name
collapse all
Open the fault_analyzer_intro model.
fault_analyzer_intro
openExample("faultanalyzer/FaultAnalyzerIntroExample")
Add two conditionals to the model.
fault_conditional_1 = Simulink.fault.addConditional(... "fault_analyzer_intro","myConditional1","y1 >= 0"); fault_conditional_2 = Simulink.fault.addConditional(... "fault_analyzer_intro","myConditional2","y1 < 0");
Delete the conditionals from the model.
Simulink.fault.deleteConditional("fault_analyzer_intro");
Delete the conditional named myConditional1 from the model.
myConditional1
Simulink.fault.deleteConditional(... "fault_analyzer_intro","myConditional1");
Path or handle to the model, specified as a string scalar, character vector, or model handle.
Data Types: string | char | double
string
char
double
Name of the conditional, specified as a string scalar or character vector. Each conditional name in the model must be unique.
Data Types: char | string
Introduced in R2023b
Conditional
Simulink.fault.addConditional
Simulink.fault.deleteAll
Simulink.fault.findConditionals
Simulink.fault.save
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处