tailieunhanh - Lecture 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 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) The graphics window opens automatically Graphic Window 4 Edit Window To open the edit window, choose File from the menu bar, then New , and, finally Script ( File ->New ->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 different in a mathematical context Continued . In mathematical nomenclature, matrices are represented as rows and columns inside square brackets: A=[5] B=[2 5] C=[] In this example, A is a 1X1 matrix, B is a 1X2 matrix, and C is a 2X2 matrix The advantage in using matrix representation is that whole groups of information can be . | 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) The graphics window opens automatically Graphic Window 4 Edit Window To open the edit window, choose File from the menu bar, then New , and, finally Script ( File ->New ->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 .