Author Archive
Matlab Core Graphics Objects
Core graphics objects include basic drawing primitives: Read More
Tags: annotation, axes, bar, camera commands, Children, contour3, Controlling Graphics Output, Core Graphics Objects, fill3, function, Graphics, gtext, image, light, line, loglog, matlab, mesh, NextPlot, patch, pcolor, plot, plot3, Position, rectangle, surf, surface, text, title, Units, view, xlabel, XLim, ylabel, YLim, zlabel, ZLim
Matlab Graphics Windows & the Figure
Figures are the windows in which MATLAB displays graphics. Figures contain menus, toolbars, user-interface objects, context menus, axes and, as axes children, all other types of graphics objects. Read More
Tags: Automatic Axes Resize, ButtonDownFcn, Callback Properties for Graphics Objects, Controlling Graphics Output, Creating Graphical User Interfaces, CurrentFigure >, Example — Transforming a Hierarchy of Objects, Example — Using Figure Panels, figure, Figure Properties, gcf, Graphics, Graphics Windows, gui, HandleVisibility, matlab, MenuBar, Multiple Axes per Figure, Name, Objects That Can Contain Other Objects, plot, ResizeFcn, Root Properties, surf, Toolbar, UIContextMenu, WindowButtonDownFcn, WindowButtonMotionFcn, WindowButtonUpFcn, windows, WindowStyle
Generating MATLAB Code to Reproduce a Graph
Create a Stem Plot and Generate Code for It
Suppose you have created the following graph. Read More
Matlab Editing Plots
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
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
Tags: constructor, delete, events, getInstance, isvalid, matlab, methods, sealed class, Superclasses
Implementing a Set/Get Interface for Properties
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
Finding Handle Objects
The findobj method enables you to locate handle objects that meet certain conditions. Read More