MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
创建用于配置模型切片器的选项对象
slsliceroptions
slsliceroptions(model)
slsliceroptions(file)
slsliceroptions(model,opts)
slsliceroptions(file,opts)
slsliceroptions 创建一个选项对象,用于配置模型切片器。
示例
slsliceroptions(model) 创建与 model 关联的模型切片器选项对象的副本。
model
slsliceroptions(file) 创建 SLMS 文件 file 中包含的模型切片器选项对象的副本。
file
slsliceroptions(model,opts) 将切片器选项 opts 附加到模型 model,覆盖现有选项。
opts
slsliceroptions(file,opts) 将切片器选项 opts 附加到 SLMS 文件 file,覆盖现有选项。
全部折叠
在活动模型切片器配置中添加一个新的起始点和一个新的排除点。
打开 slexAircraftExample 示例模型。
slexAircraftExample
openExample('simulink_aerospace/AircraftLongitudinalFlightControlExample')
点击当前目录中的 slexAircraftExample 模型。
为模型定义选项文件 opts。
opts = slsliceroptions('slexAircraftExample')
在 Gain 模块上添加一个新的起始点。
Gain
addStartingPoint(opts,'slexAircraftExample/Gain')
在 q(rad) 模块上添加一个新的排除点。
q(rad)
addExclusionPoint(opts,'slexAircraftExample/q(rad)')
在不覆盖原始配置的情况下,向活动模型切片器配置添加起始点和排除点。
为模型创建第二个模型切片器选项配置。
addConfiguration(opts)
在 Gain 模块上添加一个新的起始点,用于第二个模型切片器选项配置。
addStartingPoint(opts.Configuration(2),'slexAircraftExample/Gain')
在第二个模型切片器选项配置中,在 q (rad) 模块上添加一个新的排除点。
q (rad)
addExclusionPoint(opts.Configuration(2),'slexAircraftExample/q (rad)')
您配置模型切片器选项对象的模型的名称。
包含您要配置的模型切片器选项对象的 SLMS 文件的名称。
示例: slsliceroptions('slexAircraftExample.slms')
slsliceroptions('slexAircraftExample.slms')
包含模型切片器配置选项的结构体。
在 R2015b 中推出
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处