Documentation Center

  • Trials
  • Product Updates

getoptions

Return @PlotOptions handle or plot options property

Syntax

p = getoptions(h)
p = getoptions(h,propertyname)

Description

p = getoptions(h) returns the plot options handle associated with plot handle h. p contains all the settable options for a given response plot.

p = getoptions(h,propertyname) returns the specified options property, propertyname, for the plot with handle h. You can use this to interrogate a plot handle. For example,

p = getoptions(h,'Grid') 

returns 'on' if a grid is visible, and 'off' when it is not.

For a list of the properties and values available for each plot type, see Properties and Values Reference.

See Also

Was this topic helpful?