Lecture note Data visualization - Chapter 19

In this lecture we learned about: Checking an algorithm analysis, limitations of big-oh analysis, matlab environment, command window, command history, workspace window, current folder window, document window. | Lecture note Data visualization - Chapter 19 Lecture 19 Recap Checking an Algorithm Analysis Limitations of Big Oh Analysis MATLAB Environment Command Window Command History Workspace Window Current Folder Window Document Window Graphics Window The graphics window launches automatically when request to a graph is made To demonstrate this feature first create an array of x values x 1 2 3 4 5 Now create a list of y values y 10 20 30 40 50 To create a graph use the plot command plot x y Graphic Window Edit Window To open the edit window choose File from the menu bar then New and finally Script File gt New gt Script This window allows to type and save a series of commands without executing them Edit window can also be opened by typing edit at the command prompt or by selecting the New Script button on the toolbar Start Button The start button is located in the lower left hand corner of the MATLAB window It offers alternative access to the various MATLAB windows as well as to the help function Internet products demos and MATLAB toolboxes Toolboxes provide additional MATLAB functionality for specific content areas The symbolic toolbox in particular is highly useful to scientists and engineers Matrices in MATLAB The basic data type used in MATLAB is the matrix A single value called a scalar is represented as a 1X1 matrix A list of values arranged in either a column or a row is a one dimensional matrix called a vector . A table of values is represented as a two dimensional matrix MATLAB can handle higher order arrays. The terms matrix and array are used interchangeably by MATLAB users even though they are technically Continued . Scalar Operations MATLAB handles arithmetic operations between two scalars much as do other computer programs and even calculator Continued . The command a 1 2 should be read as a is assigned a value of 1 plus 2 which is the addition of two scalar quantities. A single equals sign is called an assignment operator in MATLAB The assignment operator

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.