Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Property Inspector

Open property inspector

Description

The Property Inspector enables you to interactively modify objects, such as graphics objects. When you select an object, the Property Inspector shows a list of object properties. You can change property values by editing the fields that appear next to each property name.

Open the Property Inspector

  • MATLAB® command prompt: Enter inspect.

Examples

expand all

Use the Property Inspector to change the transparency of a surface plot and to change the font size of the axes text.

Create a surface plot. Open the Property Inspector by entering inspect at the command prompt. Then click the surface. The Property Inspector shows surface properties.

surf(peaks(25))
inspect

Change the FaceAlpha value from 1 to 0.5. The surface plot updates so that it is semi-transparent. Then view axes properties by clicking the axes. Change the FontSize value to 14 and change the FontWeight value to bold.

Programmatic Use

expand all

inspect opens the Property Inspector for the current figure, if one exists. To view properties for a specific object, select the object. If no figures exist, then this command opens an empty Property Inspector.

inspect(obj) displays the properties for the specified object. You can specify obj as a single object or as a vector containing multiple objects, such as [obj1 obj2]. If you specify multiple objects, then the Property Inspector displays the properties that the objects have in common.

inspect -close closes the Property Inspector.

Introduced before R2006a

Was this topic helpful?