Matlab基本函数-hidden函数

时间:2022-05-06 21:29:57

1、hidden函数:设置或取消隐藏线模式

2、用法说明

(1)hidden on 函数对当前图形打开隐藏线条删除,使网格图后面的线条被前面的线条遮住。设置曲面图形对象的属性FaceColor为坐标轴背景颜色;

(2)hidden off 函数对当前图形关闭隐藏线条删除;

(3)hidden 函数在两种状态hidden on和hidden off之间切换。

3、举例说明

(1)>> mesh(peaks)
Matlab基本函数-hidden函数

(2)>> hidden on

Matlab基本函数-hidden函数

(3)>> hidden off

Matlab基本函数-hidden函数

(4)>> hidden

Matlab基本函数-hidden函数

(5)>> hidden

Matlab基本函数-hidden函数

4、附录

>> help hidden
 hidden Mesh hidden line removal mode.
    hidden ON sets hidden line removal on for meshes in the current axes.
    hidden OFF sets hidden line removal off so you can see through
    meshes in the current axes.
    hidden by itself toggles the state of hidden line removal.
 
    See also mesh.

    Reference page in Help browser
       doc hidden