Advisor.addExclusion
Description
Advisor.addExclusion('
(the first name-value pair in the syntax should be of Filter
type argument) adds an exclusion to an entity in the model. This can be a block,
a Subsystem or a Stateflow® entity.modelname
','Name,Value
')
Input Arguments
modelname
— Model name
string | character vector
Model name to display all the exclusions.
Name-Value Arguments
Example: Advisor.addExclusion('vdp', 'BlockType', 'Integrator', 'checks', {'mathworks.jmaab.jc_0231', 'mathworks.jmaab.jc_0222'}, 'validateChecks', true);
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can add
any number of name-value pairs in the arguments provided that
Filter type name-value pair is used only once.
Block
— Name of the block
string | character vector
This is an optional argument of type Filter. You can add exclusions to a particular block in the model using this argument.
Example: Advisor.addExclusion('vdp', 'Block', 'vdp:2');
BlockType
— Type of the block
string | character vector
This is an optional argument of type Filter. You can add exclusions to a particular block type in the model using this argument.
Example: Advisor.addExclusion('vdp', 'BlockType', 'Integrator');
Subsystem
— Name or SID of Subsystem
string | character vector
This is an optional argument of type Filter. You can add exclusions to a subsystem in the model using this argument.
Example: Advisor.addExclusion('vdp', 'Subsystem', 'vdp:6');
Library
— Name or SID of Library
string | character vector
This is an optional argument of type Filter. You can add exclusions to a Library in the model using this argument.
Example: Advisor.addExclusion('vdp', 'Library', 'mCustomlib:6');
MaskType
— Mask name to a Subsystem
string | character vector
This is an optional argument of type Filter. You can add exclusions to a Subsystem with a specific mask type in the model using this argument.
Example: Advisor.addExclusion('vdp', 'MaskType', 'gearSystem');
Stateflow
— Stateflow blocks imported to Simulink®
string | character vector
This is an optional argument of type Filter. You can add exclusions to State Transition Table, MessageViewer or any other Stateflow blocks apart from existing Name-Value Stateflow filters mentioned on this function page.
Example: Advisor.addExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:4');
Chart
— SID of Stateflow Chart
string | character vector
This is an optional argument of type Filter. You can add exclusions to a Stateflow chart in the model using this argument.
Example: Advisor.addExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');
State
— SID of Stateflow State
string | character vector
This is an optional argument of type Filter. You can add exclusions to a Stateflow State in the model using this argument.
Example: Advisor.addExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');
Transition
— SID of Stateflow Transition
string | character vector
This is an optional argument of type Filter. You can add exclusions to a Stateflow Transition in the model using this argument.
Example: Advisor.addExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');
Junction
— SID of Stateflow Junction
string | character vector
This is an optional argument of type Filter. You can add exclusions to a Stateflow Junction in the model using this argument.
Example: Advisor.addExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');
GraphicalFunction
— Graphical function inside Stateflow
string | character vector
This is an optional argument of type Filter. You can add exclusions to a graphical function in Stateflow using this argument.
Example: Advisor.addExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');
MatlabFunction
— MATLAB® function inside Stateflow
string | character vector
This is an optional argument of type Filter. You can add exclusions to a MATLAB function in Stateflow using this argument.
Example: Advisor.addExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');
SimulinkFunction
— Simulink function inside Stateflow
string | character vector
This is an optional argument of type Filter. You can add exclusions to a Simulink function inside Stateflow using this argument.
Example: Advisor.addExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');
TruthTable
— Stateflow Truth Table
string | character vector
This is an optional argument of type Filter. You can add exclusions to a Stateflow Truth Table in the model using this argument.
Example: Advisor.addExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');
SimulinkBasedState
— Simulink based state in Stateflow
string | character vector
This is an optional argument of type Filter. You can add exclusions to a Simulink based state in Stateflow using this argument.
Example: Advisor.addExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');
checks
— Check IDs to add exclusions
string | character vector
This is an optional argument. Using this argument you can add exclusions only to selected checks.
If this name-value pair is not used in the input arguments, then the model object will be excluded from all the checks. By default, this option is set to all checks.
Example: Advisor.addExclusion('vdp', 'Block', 'vdp:2', 'rationale', 'Block to be removed later', 'checks', {'mathworks.jmaab.jc_0231'});
validateChecks
— Validates exclusion support
false (default) | true
This is an optional argument. Using this argument you can validate if the selected checks support exclusions.
Example: Advisor.addExclusion('vdp', 'BlockType', 'Integrator', 'checks', {'mathworks.jmaab.jc_0231', 'mathworks.jmaab.jc_0222'}, 'validateChecks', true);
rationale
— Reason for exclusion
string | character vector
This is an optional argument. Using this argument you can add a rationale (comment) when adding exclusions.
Example: Advisor.addExclusion('vdp', 'Block', 'vdp:2', 'rationale', 'Block to be removed later', 'checks', {'mathworks.jmaab.jc_0231'});
Version History
Introduced in R2021a
MATLAB Command
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.
Select a Web Site
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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)