showSimulateUsingImpl

Visibility of Simulate using parameter

Syntax

flag = showSimulateUsingImpl

Description

flag = showSimulateUsingImpl specifies whether Simulation mode appears on the MATLAB® System block dialog box.

showSimulateUsingImpl is called by the MATLAB System block.

Note

You must set Access = protected and Static for this method.

Output Arguments

flag

Flag indicating whether to display the Simulate using parameter and dropdown list on the MATLAB System block mask, returned as a logical scalar value. A true value displays the parameter and dropdown list. A false value hides the parameter and dropdown list.

Default: true

Examples

expand all

Hide the Simulate using parameter on the MATLAB System block dialog box.

methods (Static, Access = protected)
  function flag = showSimulateUsingImpl
    flag = false;
  end
end

If you set the flag to true or omit the showSimulateUsingImpl method, which defaults to true, the dialog appears as follows when you add the object to Simulink® with the MATLAB System block.

If you also specify a single value for getSimulateUsingImpl, the dialog appears as follows when you add the object to Simulink with the MATLAB System block.