This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Value Summary

OptionalFALSE, or TRUE


Visible = FALSE makes an object invisible.

All graphical objects react to the attribute Visible. With Visible = FALSE, an object is made invisible. This attribute can be set in the property inspector of the interactive viewer (see section Viewer, Browser, and Inspector: Interactive Manipulation in this document) to make a selected object disappear without needing to change and re-execute the plot call.

Invisible objects do influence the viewing box of their coordinate systems.

Visible cannot be animated. However, the attributes VisibleBefore, VisibleBeforeBegin, VisibleAfter, and VisibleAfterEnd serve for some form of animated visibility. See section Frame by Frame Animations in this document for further details and examples.


Example 1

Consider the following scene:

plot(plot::Function2d(sin(x), x = -2..2),
     plot::Point2d([1, 2], PointSize = 5*unit::mm))

Obviously, the point influences the visible region of the coordinates. This region is not affected by making the point invisible:

plot(plot::Function2d(sin(x), x=-2..2),
     plot::Point2d([1, 2], PointSize = 5*unit::mm,
                    Visible = FALSE))

Was this topic helpful?