MATLAB 帮助中心
创建用于调用模型切片器的 API 对象
slslicer(model)
slslicer(model,opts)
obj = slslicer(model)
slslicer(model) 通过公开用于调用模型切片器的方法为模型 model 创建模型切片器配置对象。
model
slslicer(model,opts) 使用由 slsliceroptions 定义的选项对象 opts 为模型 model 创建模型切片器配置对象。
opts
slsliceroptions
obj = slslicer(model) 创建模型切片器配置对象。您可以对模型切片器对象 obj 应用这些方法。
obj
示例
全部折叠
向活动的模型切片器配置添加一个新起点,然后突出显示模型。
1.打开 sldvSliceClimateControlExample 示例模型。
sldvSliceClimateControlExample
open_system('sldvSliceClimateControlExample');
2.使用 slslicer 为模型创建一个模型切片器配置对象。
slslicer
obj = slslicer('sldvSliceClimateControlExample');
3.激活模型切片器的切片突出显示模式,以编译模型并为依赖关系分析准备模型切片。
activate(obj);
Consider turning on Fast Restart before launching Model Slicer for simulation based workflows. Do not show again.
4.将 Out1 输出端口模块添加为起点,并突出显示模型切片。
Out1
addStartingPoint(obj,'sldvSliceClimateControlExample/Out1'); highlight(obj);
在模型中,位于起点上游并且在仿真期间处于活动状态的部分会突出显示。
5.终止模型突出显示模式且丢弃分析数据。
terminate(obj);
要配置其模型切片器选项对象的模型的名称。slslicer 使用由 slsliceroptions 定义的与 model 关联的模型切片器配置。
包含模型切片器配置选项的结构体。slsliceroptions 定义选项对象 opts。
模型切片器对象句柄。
在 R2015b 中推出
SLSlicerAPI.SLSlicer | slslicertrace | slsliceroptions
SLSlicerAPI.SLSlicer
slslicertrace
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处