Đang chuẩn bị liên kết để tải về tài liệu:
Lecture note Data visualization - Chapter 22
Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG
Tải xuống
In this lecture we learned about: Sum and product functions, matrix size function, variance and standard deviation, random numbers, complex numbers. | Lecture 22 Recap Sum and Product Functions Matrix Size Function Variance and Standard Deviation Random Numbers Complex Numbers Computational Limitations MATLAB includes functions to identify the largest real numbers and the largest integers the program can process Special Values and Functions Summary of Chapter General mathematical functions, such as exponential functions logarithmic functions roots Rounding functions Functions used in discrete mathematics, such as factoring functions prime-number functions Trigonometric functions, including standard trigonometric functions inverse trigonometric functions hyperbolic trigonometric functions trigonometric functions that use degrees instead of radians Continued . Data analysis functions, such as maxima and minima averages (mean and median) sums and products sorting standard deviation and variance Random-number generation for both uniform distributions Gaussian (normal) distributions Functions used with complex numbers Chapter 5 Plotting | Lecture 22 Recap Sum and Product Functions Matrix Size Function Variance and Standard Deviation Random Numbers Complex Numbers Computational Limitations MATLAB includes functions to identify the largest real numbers and the largest integers the program can process Special Values and Functions Summary of Chapter General mathematical functions, such as exponential functions logarithmic functions roots Rounding functions Functions used in discrete mathematics, such as factoring functions prime-number functions Trigonometric functions, including standard trigonometric functions inverse trigonometric functions hyperbolic trigonometric functions trigonometric functions that use degrees instead of radians Continued . Data analysis functions, such as maxima and minima averages (mean and median) sums and products sorting standard deviation and variance Random-number generation for both uniform distributions Gaussian (normal) distributions Functions used with complex numbers Chapter 5 Plotting Two-Dimensional Plots The most useful plot for engineers is the x–y plot A set of ordered pairs is used to identify points on a two-dimensional graph; the points are then connected by straight lines The values of x and y may be measured or calculated Generally, the independent variable is given the name x and is plotted on the x -axis, and the dependent variable is given the name y and is plotted on the y -axis Simple x-y Plots Once vectors of x -values and y -values have been defined, MATLAB makes it easy to create plots Suppose a set of time versus distance data were obtained through measurement We can store the time values in a vector called x and the distance values in a vector called y : x = [0:2:18]; y = [0, 0.33, 4.13, 6.29, 6.85, 11.19, 13.19, 13.96, 16.33, 18.17]; Continued . To plot these points, use the plot command, with x and y as arguments: plot(x,y) A graphics window automatically opens, which MATLAB calls Figure 1 Titles, Labels and Grids Good engineering practice .