16-01-2013, 11:30 AM
Advanced MATLAB® Graphics and GUI
Advanced MATLAB.pdf (Size: 2.66 MB / Downloads: 235)
The Figure Window
The figure window contains useful actions in its menu
and toolbars:
•Zooming in and out
•Panning
•Rotating 3-D axes (and other camera actions)
•Copying & pasting
•Plot Edit Mode
•Plot tools (interactive plotting)
–Figure Palette
–Plot Browser
–Property Inspector
•Data Cursor Mode
•Data brushing and linking
Data Brushing and Linking
•Data Brushing
–Manually select observations on an interactive data display
–Can select, remove, and replace individual data values
•Data Linking
–Linked plots visibly respond to changes in the current workspace variables they display and vice versa
•Each one of these tools is useful by itself but when used together they are very powerful
Data Statistics & Curve Fitting
•Data Statistics Tool
–Calculates basic statistics about the central tendency and variability of data plotted in a graph
–Plots any of the statistics the a graph
•Basic Fitting Interface
–Fits data using a spline interpolant, a shape-preserving interpolant, or a polynomial up to degree 10
–Plots multiple fits simultaneously for a given data set
–Examines the numerical results of a fit
–Annotates the plot with the numerical fit results and the norm of residuals
Animation
MATLAB provides two ways of generating moving, animated graphics:
1.On the fly - Continually erase and then redraw the objects on the screen, making incremental changes with each redraw
2.Frame by frame capture and playback - Save a number of different pictures and then play them back as a movie
Images
•Image display
–imshow – Display
–subimage – Display multiple images in a single figure even if they have different colormaps
•Image exploration
–imtool – Provides tools for pixel information, pixel region, distance, image information, adjust contrast, crop image, and display range
Composite Graphics Objects
•Composite Objects are core objects that have been grouped together to provide a more convenient interface
•Plot objects
–areaseries, barseries, contourgroup, errorbarseries, lineseries, quivergroup, scattergroup, stairseries, stemseries, surfaceplot
•Group objects
–hggroup – Enables to control visibility or selectability of a group of objects
–hgtransform – Enables to transform (etc., rotate, translate, scale) a group of objects
•Annotation objects
–Created in a hidden axes that extends the full size of the figure
–Enables to specify the locations anywhere in the figure using normalized coordinates