Skip to Main Content Skip to Search
Product Documentation

Examples


Use this list to find examples in the documentation.

Plotting Tools

Example — Plotting Workspace Variables
Example — Choosing a Graph Type
Example — Specifying a Data Source

Generating M-Code

Example — Generating MATLAB Code to Reproduce a Graph

Using Legends and Colorbars

Labeling Colorbar Ticks

Aligning Objects

Example — Vertical Distribute, Horizontal Align
Example — Aligning Text

Setting Type in Figures

Using Axis-Label Commands
Defining Symbols
Example — Using a Mathematical Expression to Title a Graph
Example — Multiline Text
Example — Using LaTeX to Format Math Equations

Annotation Objects

Example — Pinning Text Arrows and Ellipses
Example — Enclosing Subplots with an Annotation Rectangle

Creating Specialized Plots

Grouped Bar Graph
Detached 3-D Bars
Grouped 3-D Bars
Coloring 2-D Bars According to Height
Coloring 3-D Bars According to Height
Stacked Bar Graphs to Show Contributing Amounts
Overlaying Bar Graphs
Overlaying Other Plots on Bar Graphs
Comparing Data Sets with Area Graphs
Creating a Pie Chart
Two-Dimensional Stem Plots
Combining Stem Plots with Line Plots
Example — 3-D Stem Plot of an FFT
Example — Combining Stem and Line Plots
Example — Stairstep Plot of a Function
Example — Compass Plot of Wind Direction and Speed
Contour Plot of the Peaks Function
Example — Visualizing Contour Construction
Example — Specifying Index Contours
Changing the Offset of a Contour
Displaying Contours in Polar Coordinates
Example — Smoothing a Matrix for Plotting Contours
Example — Selecting Plotting Points from the Screen
Example — Visualizing an FFT as a Movie
Updating Plot Object Axis and Color Data

Basic Printing and Exporting

Printing a Figure at Screen Size
Printing with a Specific Paper Size
Printing a Centered Figure
Exporting in a Specific Graphics Format
Exporting in EPS Format with a TIFF Preview
Exporting a Figure to the Clipboard

Handle Graphics Objects

Example — Creating Core Graphics Objects
Examples — Setting Default Line Styles
Example — Copying Objects
Example — Using newplot

Plot Objects

Creating a Plot Object
Data Source Example

Group Objects

Transforming Objects
Example — Transforming a Hierarchy of Objects
Introduction

Finding Object Handles

Example — Finding Objects
Example — Using Logical Operators and Regular Expression

Testing for Hold State

Testing for Hold State

Container Objects

Example — Using Figure Panels

Function Handle Callbacks

Example — Using Function Handles in GUIs

Figure Properties

Example — Specifying Figure Position
Example — Two Custom Pointers

Axes Properties

Creating Axes with Specific Characteristics
Placing Text Outside the Axes
Multiple Axes for Different Scaling
Setting Tick Mark Locations
Changing Axis Direction
Introduction
Calculating Color Limits

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS