文档介绍:matlab画图(matlab画图)
This paper is contributed by hulonglong2011
Ppt documents may experience poor browsing on the WAP side. It is mended that you select TXT first or download the source file to the local machine.
number
Online education courses at Southwest University of Science and Technology
Software
learn
Mathematical software
Eighth, MATLAB drawing, a MATLAB drawing one
teach
Network education of Southwest University of Science and Technology
:
large
Associate Professor
Department of mathematics, School of science, Southwest University of Science and Technology
2D graphics 3D graphics
Network education of Southwest University of Science and Technology
The basic function of the 2D drawing two-dimensional curve 1. plot function of the basic usage of the plot function calls the basic format: plot (x, y) x and y as a vector of the same length, were used to store the X and Y coordinates data.
Network education of Southwest University of Science and Technology
cases in 0 = X = 2 pi range curve y= (2 - x). The procedures are as follows: x=0:pi/100:2*pi; y=2*exp (-*x).*sin (2*pi*x); plot (x, y)
Network education of Southwest University of Science and Technology
Network education of Southwest University of Science and Technology
Note: (1) when x, y is the same matrix, with X, y corresponding to the column elements for the horizontal and vertical coordinates were plotted, the curve is equal to the number of matrix columns. (2) when x is a vector, y matrix is one dimension and X dimensions, then draw the curve of a plurality of different colors. The number of curves is equal to the other dimension of the Y matrix, and X is used as mon abscissa of these curves. (3) the simplest call format of the plot function contains only one input parameter: plot (x).
Network education of Southwest University of Science and Technology
Case the total monthly output value (unit: 10000 yuan) of a factory in 2000 was 22, 60, 88, 95