Main Content

Advisor.removeExclusion

Removes exclusions for a model or a file

Description

Advisor.removeExclusion('modelname','Name,Value') removes the exclusions of Filter type in the model.

Input Arguments

collapse all

Model name to remove the exclusions.

Name-Value Pair Arguments

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 only specify a single Name-Value pair argument.

Example: Advisor.removeExclusion('vdp', 'BlockType', 'Integrator');

This is an optional argument of type Filter. You can remove exclusions for a particular block in the model using this argument.

Example: Advisor.getExclusion('vdp', 'Block', 'vdp:2');

This is an optional argument of type Filter. You can remove exclusions for a particular blocktype in the model using this argument.

Example: Advisor.getExclusion('vdp', 'BlockType', 'Integrator');

This is an optional argument of type Filter. You can remove the exclusions applied to a subsystem in the model using this argument.

Example: Advisor.getExclusion('vdp', 'Subsystem', 'vdp:6');

This is an optional argument of type Filter. You can remove the exclusions applied to a Library in the model using this argument.

Example: Advisor.getExclusion('vdp', 'Library', 'mCustomlib:6');

This is an optional argument of type Filter. You can remove the exclusions applied to a Subsystem with a specific mask type in the model using this argument.

Example: Advisor.getExclusion('vdp', 'MaskType', 'gearSystem');

This is an optional argument of type Filter. You can remove the exclusions applied to Stateflow blocks and Subsystems in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:4');

This is an optional argument of type Filter. You can remove the exclusions applied to a Stateflow chart in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can remove the exclusions applied to a Stateflow State in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can remove the exclusions applied to a Stateflow Transition in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can remove the exclusions applied to a Stateflow Junction in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can remove the exclusions applied to a graphical function in Stateflow using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can remove the exclusions applied to a MATLAB function in Stateflow using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can remove the exclusions applied to a Simulink function inside Stateflow using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can remove the exclusions applied to a Stateflow Truth Table in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can remove the exclusions applied to a Simulink based state in Stateflow using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument. You can remove an exclusion in the model by providing the exclusion object. It can deduce the type and identifier by itself.

Example:

allExclusions = Advisor.getExclusion('vdp'); 
Advisor.removeExclusion('vdp', 'object', allExclusions(1));
Introduced in R2021a