Generating MATLAB Code to Reproduce a Graph

April 24th, 2010 No Comments   Posted in Examples

Create a Stem Plot and Generate Code for It

Suppose you have created the following graph. Read More

Matlab Editing Plots

April 24th, 2010 No Comments   Posted in Documents

Why Edit Plots?

MATLAB graphs are formatted to provide readability, setting the scale of axes, including tick marks on the axes, and using color and line style to distinguish the plots in the graph. However, if you are creating presentation graphics, you might want to change this default formatting or add descriptive labels, titles, legends, and other annotations to help explain your data. Read More

Controlling the Number of Instances

April 24th, 2010 No Comments   Posted in Documents

Limiting Instances

You can limit the number of instances of a class that can exist at any one time. For example, a singleton class can have only one instance and provides a way to access this instance. You can create a singleton class using these elements: Read More

Implementing a Set/Get Interface for Properties

April 24th, 2010 No Comments   Posted in Documents

The Standard Set/Get Interface

The MATLAB Handle Graphics system implements an interface based on set and get methods. These methods enable you to set or query the value of graphics object properties. The hgsetget subclass of the handle class provides implementations of these methods that your class can inherit to provide the same set and get functionality. Read More

Finding Handle Objects and Properties

April 24th, 2010 No Comments   Posted in Documents

Finding Handle Objects

The findobj method enables you to locate handle objects that meet certain conditions. Read More