12.07.2015 Views

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

You can design <strong>and</strong> apply filters to data in a similar way.23 H<strong>and</strong>le GraphicsSo far in this book, we have only used matlab’s high-level plottingfunction (plot, surf, etc.). High-level plotting functions produce simplegraphs <strong>and</strong> automate the many mundane decisions you might make inproducing a plot, such as the position <strong>of</strong> the plot, the colour <strong>of</strong> the axes,the font size, the line thickness, <strong>and</strong> so on. matlab’s system <strong>of</strong> H<strong>and</strong>leGraphics allows you to control a great many <strong>of</strong> these “mundane” aspects<strong>of</strong> plotting, to produce plots that are optimised for communicating thedata at h<strong>and</strong>. The idea behind H<strong>and</strong>le Graphics is that every object inthe figure window (axes, lines, text, surfaces, etc.) has a set <strong>of</strong> properties.These properties can be examined using the get comm<strong>and</strong> <strong>and</strong> set to newvalues using the set comm<strong>and</strong>. Every object in the figure window alsohas a unique identifier (a number) called a h<strong>and</strong>le. The object’s h<strong>and</strong>letells get <strong>and</strong> set what object you are interested in. As an introductoryexample, consider the plot shown on page 58 <strong>of</strong> the frequency modulatedsinusoid:c○ 2000 by CRC Press LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!