MATLAB 帮助中心
Create options object for configuring Model Slicer
slsliceroptions
slsliceroptions(model)
slsliceroptions(file)
slsliceroptions(model,opts)
slsliceroptions(file,opts)
slsliceroptions creates an options object for configuring the Model Slicer.
example
slsliceroptions(model) creates a copy of the Model Slicer options object associated with model.
model
slsliceroptions(file) creates a copy of the Model Slicer options object contained in the SLMS file file.
file
slsliceroptions(model,opts) attaches the slicer options opts to the model model by overwriting the existing options.
opts
slsliceroptions(file,opts) attaches the slicer options opts to the SLMS file file by overwriting the existing options.
collapse all
Add a new starting point and a new exclusion point to the active Model Slicer configuration.
Open the slexAircraftExample example model.
slexAircraftExample
openExample('simulink_aerospace/AircraftLongitudinalFlightControlExample')
Double click on slexAircraftExample model in the current directory.
Define the options file opts for the model.
opts = slsliceroptions('slexAircraftExample')
Add a new starting point on the Gain block.
Gain
addStartingPoint(opts,'slexAircraftExample/Gain')
Add a new exclusion point on the q(rad) block.
q(rad)
addExclusionPoint(opts,'slexAircraftExample/q(rad)')
Add a starting point and an exclusion point to the active Model Slicer configuration without overwriting the original configuration.
Create a second Model Slicer options configuration for the model.
addConfiguration(opts)
Add a new starting point on the Gain block for the second Model Slicer options configuration.
addStartingPoint(opts.Configuration(2),'slexAircraftExample/Gain')
Add a new exclusion point on the q (rad) block for the second Model Slicer options configuration.
q (rad)
addExclusionPoint(opts.Configuration(2),'slexAircraftExample/q (rad)')
Name of the model whose Model Slicer options object you configure.
Name of the SLMS file containing the Model Slicer options object that you configure.
Example: slsliceroptions('slexAircraftExample.slms')
slsliceroptions('slexAircraftExample.slms')
Structure containing the options for the Model Slicer configuration.
Introduced in 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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处