Help CenterHelp Center
Return block handles in sliced model or source model after using Model Slicer
slslicertrace('slice',object)
slslicertrace('source',object)
slslicertrace('slice',object)returns the block handles in the sliced model that correspond to blocks specified byobjectin the source model.
object
example
slslicertrace('source',object)returns the block handles in the source model that correspond to blocks specified byobjectin the sliced model.
collapse all
Highlight theSwitchblock in thesldvSliceClimateControlExamplesource model.
sldvSliceClimateControlExample
Open thesldvSliceClimateControlExampleexample model.
addpath(fullfile(docroot,'toolbox','simulink','examples')); open_system('sldvSliceClimateControlExample');
Create a slicer objectobjand addOut1as the starting point.
obj
Out1
obj = slslicer('sldvSliceClimateControlExample'); activate(obj); addStartingPoint(obj,'sldvSliceClimateControlExample/Out1'); highlight(obj)
Create a sliced model by usingslice.
slice
slice(obj,'sldvSliceClimateControlExample_sliced')
Highlight theOnSwitchblock in the source model by usingslslicertrace
On
slslicertrace
h=slslicertrace('SOURCE','sldvSliceClimateControlExample_sliced/Refrigeration/On'); hilite_system(h); terminate(obj);
Anobjectcan be specified as an array of block handles, cell arrays of block paths, or cell arrays of Simulink Identifiers (SID).
slslicer|slsliceroptions
slslicer
slsliceroptions
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office