Main Content

propertyeditor

(不推荐)显示或隐藏属性编辑器

    不推荐使用 propertyeditor。请改用 inspect 来启动属性检查器。有关详细信息,请参阅兼容性考虑

    说明

    示例

    propertyeditor 在当前图窗上显示属性编辑器绘图工具。如果当前没有任何图窗,propertyeditor 会创建一个。

    当您停靠、取消停靠、调整大小或重新定位某绘图工具时,MATLAB® 会在您为后续图窗调用该工具时恢复该配置,这在 MATLAB 会话内部和会话之间都是如此。没有可将绘图工具重置为其原始配置的命令。

    propertyeditor(state) 更改图窗上属性编辑器绘图工具的状态。例如,propertyeditor("on") 会显示属性编辑器。

    propertyeditor(fig,___) 在指定的图窗而非当前图窗上操作。输入 fig 可以位于上述语法中的任何输入参量组合之前。

    示例

    全部折叠

    通过调用 propertyeditor 函数在图窗上显示属性编辑器。该工具将以上次调用该工具时的相同配置打开。

    plot(1:10);
    propertyeditor

    Property Editor tool below a figure window. The Property Editor tool has options to set the figure name, colormap, and figure color. A check box is labeled "Show Figure Number". Two buttons are labeled "More Properties" and "Export Setup".

    输入参数

    全部折叠

    属性编辑器工具状态,指定为以下值之一:

    • "on" - 显示属性编辑器。

    • "off" - 隐藏属性编辑器。

    • "toggle" - 在 "on""off" 状态之间切换属性编辑器状态。

    示例:propertyeditor("on") 在当前图窗上显示属性编辑器绘图工具。

    目标图窗,指定为 Figure 对象。使用 fig 在特定图窗(而不是当前图窗)上显示或隐藏属性编辑器。

    示例:propertyeditor(f) 将在图窗 f 上显示属性编辑器绘图工具。

    提示

    如果您在 MATLAB 程序中调用 propertyeditor 并且后续各行依赖于完全初始化的属性编辑器,请在其后使用 drawnow 来确保完全初始化。

    备选方法

    在图窗窗口的视图菜单中显示或隐藏属性编辑器工具。

    版本历史记录

    在 R2006a 之前推出

    全部展开