Learning notes for Matlab (5) MATLAB plotting Overview

Source: Internet
Author: User

MATLAB provides many different technologies to display digital images. interactive tools can reveal the results of important data information, and you can save images by making comments and printing, or export images to a web browser or media in a standard format.

I. Image Rendering Process

A large number of operations must be introduced for graphical data operations.

1. Create an image

The image type you choose to create is determined by two parts: the data is as is, and the data is what you want to display. MATLAB pre-defines many graphic types, such as straight lines, histograms, bar charts, and pie charts. There are also 3-D images.

You can create a graph in two ways:

(1) Use a drawing tool to draw interactive Images

(2) Use the command interface to draw a graph by typing a command in the Command window or writing a function

You can find that it is quite effective to integrate the two. For example, you can use a command to draw a basic image and then use a drawing tool to change the image.

2. Explore data

Once you create a graph, you can extract the specified information from the graph, such as the maximum data volume of a graph, the average value of a group of data, and so on.

3. Edit graphical controls

A graph consists of various objects. Users can modify some of its attributes, which affect the display and behavior of some components.

For example, an axis defined as a graphics-related system has the following attributes: The definition field, color, and scale of the axis.

A straight line has the following attributes: color and so on.

4. Graphic comments

Annotations are used to add text, arrow symbols, image labels, and labels to a graph to help you understand important information about the graph. When you want to show it to other users or save the image as a reference, you can add comments in a representative way.

5. Print and export Images

You can print images on any printer connected to your computer.

Exporting images means you have created a sample stored in a standard format, such as TIF/JPEG/EPS/

Then you can import these images in the document processing process or in the HTML document. Alternatively, select export setup under the File menu of figure to edit it into a drawing toolkit.

6. Save the image for future re-import

You can save your image in two ways:

(1) Save as a fig file (select Sava under the File menu of figure );

(2) generate MATLABCodeThese codes can be reused later. (Select generate M-file under the File menu of figure );

Fig-Files: the binary format in which the image is saved in the current state. This means that all image objects and attribute settings will be saved to the image when you create the image. You can re-import the image in other versions of MATLAB. The format is the same as what you saved.

Generated code: Unlike the former, it does not contain any data. When you run code, you can use data to create functions.

 

Ii. graphic components

MATLAB displays graphics in a so-called figure window

 

 

Iii. Drawing tools

 

4. Arrange images in figure

 

V. Type of the selected Vertex

This section describes the use of MATLAB plotting tools.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.