Main Content

showSimulateUsingImpl

类: matlab.System

仿真方式参数的可见性

语法

flag = showSimulateUsingImpl

说明

flag = showSimulateUsingImpl 指定是否在 MATLAB System (Simulink) 模块对话框中显示 Simulate using

运行时详细信息

showSimulateUsingImplMATLAB System 模块调用。

方法编写提示

您必须先对此方法设置 Access = protectedStatic

输出参量

全部展开

指示是否在 MATLAB System 模块封装上显示 Simulate using 参数和下拉列表的标志。true 表示显示参数和下拉列表。false 表示隐藏参数和下拉列表。

示例

全部展开

隐藏 MATLAB System 模块对话框上的 Simulate using 参数。

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

如果将标志设置为 true 或省略 showSimulateUsingImpl 方法(默认为 true),则在使用 MATLAB System (Simulink) 模块向 Simulink® 添加对象时,对话框如下所示。

如果还为 getSimulateUsingImpl 指定单个值,则在使用 MATLAB System (Simulink) 模块向 Simulink 添加对象时,对话框将如下所示。

版本历史记录

在 R2015a 中推出