Graphics and GUIs with MATLAB

A Word About Annotating 3-D Plots (Plotting in Three Dimensions) (MATLAB)

The approach you take to adding text to 3-dimensional plots is very similar to doing so for 2-dimensional plots.The only real difference is that you now have a z-axis that you can label. You have already seen this in action in this topic such as with the example of Figure 4.26 where we used the […]

Image Files and Formats (Image Graphics) (MATLAB)

With digital cameras and scanners available at ridiculously low prices, practically everyone is familiar with images on their computer. Images can convey a great deal of information in a very intuitive form. Images don’t have to be of the real world, they can certainly be representations of mathematical phenomena; in fact, that’s exactly what we […]

Image I/O (Image Graphics) (MATLAB)

If you are generating an image file for use by others, you will likely choose a format that is commonly viewable with most image editing software. If your image contains only a few colors or is made up of mostly constant color areas, then the color-mapped formats, e.g., PNG and GIF, will do well; however, […]

Image Types and Properties (Image Graphics) (MATLAB)

Whenever we deal with images we need to be aware that there are fundamentally three types of image data formats. You have already seen some of this in the previous examples. The first image data format is indexed images where two arrays are used to describe the image. The second image data format is intensity […]

The Quickest Way to Paper (Generating Output) (MATLAB)

You also need to know how to print your output to printers and how to create graphic output that can be used in other computer applications such as word processors. There are several ways to do this depending on the intended use of the image and the format of image output you need. The first […]

Printing Colored Lines to Black & White Printers (Generating Output) (MATLAB)

Unless you have changed the default line style and color properties of the root object, MATLAB will by default plot lines in the "solid line" or ‘-’ setting. If you have several lines up at once, they may or may not be different colors, depending on how you plotted them. When you print these to […]

Electronic Output (Generating Output) (MATLAB)

In addition to printing to paper, MATLAB supports various electronic formats for graphics output. You have already learned how to read and write image files using imread and imwrite. Now you will learn how to use the pull-downs from the Figure Window and the print function from the Command Line to create image files of […]

Using the Print Command (Generating Output) (MATLAB)

Certainly the most powerful way to print your Figure Window, either to a printer or to an image file, is by using the print function. In its simplest use, print will send the contents of the current Figure Window to the computer’s default printer. The general form of print is PRINT -DEVICETYPE -OPTIONS Since both […]

Graphics Objects (Handle Graphics) (MATLAB)

By this time, you have already explored many of MATLAB’s graphics capabilities. What you’ve done so far can be thought of as "high-level" graphics, i.e., it didn’t require you to get very deep into what was really going on in MATLAB. Nevertheless, we have already had to "slip" a little Handle Graphics in a few […]

Graphics Objects Hierarchy (Handle Graphics) (MATLAB)

The MATLAB graphics system is an effective and powerful object oriented approach based on the simple paradigm of parent-child relationships between some of the objects. Each object has its own identity and characteristics as defined by its attributes or properties. In the previous section, some examples of the typical types of graphics objects that fall […]