12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

geta = get(h,'Default') returns all default values currently defined on objecth. a is a structure array whose field names are the object property names andwhose field values are the values of the corresponding properties. If you do notspecify an output argument, <strong>MATLAB</strong> displays the information on the screen.a = get(h,'DefaultObjectTypePropertyName') returns the factory-definedvalue of the named property for the specified object type. The argument,DefaultObjectTypePropertyName, is the word Default concatenated with theobject type (e.g., Figure) and the property name (e.g., Color).DefaultFigureColorExamplesYou can obtain the default value of the LineWidth property for line graphicsobjects defined on the root level with the statement:get(0,'DefaultLineLineWidth')ans =0.5000To query a set of properties on all axes children define a cell array of propertynames:props = {'HandleVisibility', 'Interruptible';'SelectionHighlight', 'Type'};output = get(get(gca,'Children'),props);The variable output is a cell array of dimensionlength(get(gca,'Children')−by−4.For example, typepatch;surface;text;lineoutput = get(get(gca,'Children'),props)output ='on' 'on' 'on' 'line''on’ 'off' 'on' 'text''on' 'on' 'on' 'surface''on' 'on' 'on' 'patch'See Alsofindobj, gca, gcf, gco, set2-209

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!