Online Technology Guide for Elementary Linear Algebra, 6e Larson/Falvo

Size: px
Start display at page:

Download "Online Technology Guide for Elementary Linear Algebra, 6e Larson/Falvo"

Transcription

1 Online Technology Guide for Elementary Linear Algebra, e Larson/Falvo Computer Software Programs and Graphing Utilities Introduction to MATLAB Introduction to Maple Introduction to Mathematica Introduction to Derive Graphing Utilities Technology Pitfalls Keystrokes and Programming Syntax for Selected Examples Section., Example Section., Example Section., Example Section., Example Section., Example Section., Example Section.4, Example Section 4., Example Section 4., Example Section., Example Section., Technology Note Section., Example Section., Example Section.4, Example Section.4, Example Section., Example Section., Example

2 Online Technology Guide Computer Software Programs and Graphing Utilities To help you become acquainted with the rudiments of using a computer software program or graphing utility, the following pages contain certain introductory instructions for the following popular systems: MATLAB, Maple, Mathematica, and Derive, as well as information about various graphing utility models. Introduction to MATLAB The purpose of this introduction is to illustrate some basic MATLAB commands for linear algebra. It is suggested that you complete the following series of simple examples while actually working at the computer terminal. Once you have signed on to MATLAB, you should type in your commands to the right of the prompt >>.. Enter the matrix by typing a [ ; 4 ; ] and hitting the return or enter key. Be sure to separate the entries in each row by spaces and to terminate the rows with semicolons. MATLAB should return the following matrix.. Perform the following elementary commands on the matrix a. You should obtain the indicated results. (a) inv a (b) (c) a a 4 a 4 a*inv a ans ans ans

3 Computer Software Programs and Graphing Utilities (d) *a (e) (f ) (g) (h). Enter the matrix b [; ; ]. You can solve the system of linear equations ax b in different ways: (a) a\ b (b) rref a det a rank a diag a ans ans ans ans ans c [a b] and then rref c c 4 rref c ans 4 ans 4 4. Enter the matrices A [ ; 4] and B [ ; ] and perform the following matrix operations. Notice that MATLAB distinguishes between upper- and lowercase letters; using the uppercase letter B to label the matrix above is not the same as using the lowercase letter b.

4 4 Online Technology Guide (a) A B ans (b) A B ans (c) A * B. What do the following commands do? (a) zeros, (b) eye() (c) rand() (d) hilb(). Describe the effects of the following commands on the matrix a [ ; 4 ; ]. (a) a(, ) (b) a(, :) (c) a(:, ). You can obtain more information about MATLAB by typing help.. You can exit MATLAB by typing exit. Introduction to Maple The purpose of this introduction is to illustrate some basic Maple commands for linear algebra. It is suggested that you complete the following series of simple examples while actually working at the computer terminal. Once you have signed on to Maple, you should type in your commands to the right of the prompt >. Begin by loading the linear algebra package that comes with Maple by typing with(linalg); and hitting the return or enter key. Notice that all commands in Maple terminate with a semicolon ;.. Enter the matrix a 4 ans 4 by typing a: matrix [[,, ], [4,, ], [,, ]] ; and hitting the return or enter key. Be sure to separate the entries in each row by commas and place each row of the matrix within brackets. Maple should return the following matrix.

5 a: 4 Computer Software Programs and Graphing Utilities. Perform the following elementary commands on the matrix a. You should obtain the indicated results. (a) inverse(a); 4 (b) transpose(a); 4 (c) multiply(a, inverse(a)); (d) scalarmul(a, ); 4 4 (e) rref(a); (f) det(a); (g) rank(a); (h) diag(a, inverse(a)); 4 4

6 Online Technology Guide. Enter the column matrix b: transpose matrix [[,, ]] ;. You can solve the system of linear equations ax b in different ways: (a) linsolve(a, b); (b) c: augment a, b ; and then rref(c); 4. Enter the matrices A: matrix [[, ], [, 4]] ; and B: matrix [[, ], [, ]] ; and perform the following matrix operations. Notice that Maple distinguishes between upper- and lowercase letters; using the uppercase letter B to label the matrix above is not the same as using the lowercase letter b. (a) matadd A, B ; (b) matadd A, B,, ; (c) multiply A, B ;. What do the following commands do? (a) matrix,, ; (b) band [], ; (c) randmatrix 4, ; (d) hilbert ;. Describe the effects of the following commands on the matrix [[,, ], [4,, ], [,, ]] ;. (a) (b) (c) c: 4 4 submatrix a,..,.. ; submatrix a,..,.. ; submatrix a,..,.. ; a: matrix. You can obtain more information about a particular topic, such as eigenvalues, by typing?eigenvalues.. You can exit Maple by choosing Exit from the file menu.

7 Computer Software Programs and Graphing Utilities Introduction to Mathematica The purpose of this introduction is to illustrate some basic Mathematica commands for linear algebra. It is suggested that you complete the following series of simple examples while actually working at the computer terminal. Once you have signed on to Mathematica, you should type in your commands to the right of the prompt.. Enter the matrix a 4 by typing a {{,, }, {4,, }, {,, }} and evaluating the expression (cell). Be sure to separate the entries in each row by commas and place each row of the matrix within braces. Mathematica should return the following matrix. You can obtain a more natural matrix display by typing %//MatrixForm. Out[] In[] %//MatrixForm Out[]//MatrixForm 4. Perform the following elementary commands on the matrix a. You should obtain the indicated results. (a) Inverse[a] //MatrixForm Out[]//MatrixForm 4,,, 4,,,,, (b) Transpose[a] Out[4], 4,,,,,,, (c) a.inverse[a] Out[],,,,,,,, (d) *a Out[], 4,,,,, 4,,

8 Online Technology Guide (e) RowReduce[a] Out[],,,,,,,, (f) Det[a] Out[]. Enter the matrix b {,, }. You can solve the system of linear equations ax b in different ways: (a) LinearSolve[a, b] Out[],, (b) c Table[Append[a[[i]], b[[i]]], {i,, }] and then RowReduce[c] Out[],,,, 4,,,,,,, In[] RowReduce[c]//MatrixForm Out[]//MatrixForm 4. Enter the matrices A {{, }, {, 4}} and B {{, }, {, }} and perform the following matrix operations. Notice that Mathematica distinguishes between upper- and lowercase letters; using the uppercase letter B to label the matrix above is not the same as using the lowercase letter b. (a) A B Out[],,, (b) A B Out[],,, (c) A.B Matrix multiplication is not A * B. Out[] 4,,,. What do the following commands do? (a) Table[, {i,, }, {j,, }] (b) IdentityMatrix[] (c) Table[Random[Integer,{, }], {4}, {}]//MatrixForm (d) Table[/ i j, {i,, }, { j,, }]

9 Computer Software Programs and Graphing Utilities. Describe the effects of the following commands on the matrix a {{,, }, {4,, }, {,, }}. (a) (b) (c) a[[, ]] a[[]] Transpose[a] [[]]. You can obtain more information about a particular topic, such as determinants, by typing?det.. You can exit Mathematica by choosing Exit from the file menu. Introduction to Derive The purpose of this introduction is to illustrate some basic Derive commands for linear algebra. It is suggested that you complete the following series of simple examples while actually working at the computer terminal.. Enter the matrix a 4 by using the Author/Expression feature i.e., a: [[,, ], [4,, ], [,, ]] and hitting the return or enter key. Be sure to separate the entries in each row by commas and place each row of the matrix within brackets. Derive should return the following matrix. a: 4. Perform the following elementary operations on the matrix a by typing the given expression and Simplifying it. You should obtain the indicated results. (a) a^ 4 (b) a` 4

10 Online Technology Guide (c) a * a^ (d) a * 4 (e) Row_Reduce(a) (f) det(a). Enter the column matrix b:,,. You can solve the system of linear equations ax b in several ways: (a) You can row reduce the augmented matrix a b. Row_Reduce(a, b) (b) You can Simplify the equation [[x], [ y], [z]] a^ * b. x y z (c) You can Expand the equation a[[x], [ y], [z]] b. Then Solve the Expression by choosing solution variables x, y, and z and choosing Solve. 4. Enter the matrices A : [[, ], [, 4]] and B : [[, ], [, ]] and perform the following matrix operations. (a) A B (b) A B x, y, z 4

11 Computer Software Programs and Graphing Utilities (c) A * B. What do the following commands do? (a) VECTOR VECTOR, j,,, k,, (b) Identity_Matrix() (c) VECTOR(VECTOR(Random(), j,, ), k,, 4) (d) VECTOR(VECTOR / j k, j,,, k,,. Describe the effects of the following commands on the matrix a: [[,, ], [4,, ], [,, ]]. (a) (b) (c) 4 Element Element a,, Element a, Element a`, `. You can obtain more information about a particular topic by choosing Contents from the help menu.. You can exit Derive by choosing Exit from the file menu. Graphing Utilities The following chart lists various graphing utilities* and their built-in matrix capabilities. For example, the first row indicates that all the graphing utilities can perform matrix addition. Matrix operation Voyage TI- TI- TI- TI-4 TI- TI- Plus Plus Addition x x x x x x x Scalar multiplication x x x x x x x Multiplication x x x x x x x Elementary row operations x x x x x x x Reduced row-echelon form x x x x x x x Determinant x x x x x x x Inverse x x x x x x x Transpose x x x x x x x Norm x x x x Power x x x x x x x Eigenvalues x x x x LU-decomposition x x x x Identity matrix x x x x x x x Random matrix x x x x x x x Concatenate matrices x x x x x x x Condition number x Complex matrices x x x x Vectors x x x x *For other graphing utility models, see your user s manual.

12 Online Technology Guide Technology Pitfalls Many matrix computations in linear algebra can be performed by modern graphing utilities and computer software programs. However, you should be aware that these devices are not perfect because of roundoff error that is, the graphing utility or computer must approximate fractions by decimals either by rounding off the last digit or by truncating. For example, evaluate using your graphing utility. On the TI- you will get., which is not correct, because the graphing utility has rounded the last digit up. To analyze this more closely, evaluate.. Do you get the expected answer of? Normally this kind of rounding will not affect your answers to problems in linear algebra, but it can happen. Here are a couple of simple examples.. Calculate the determinant of the matrix A on the TI-. Then calculate the greatest integer of the determinant, int det A. Again, roundoff error has produced an error.. The Hilbert matrix of order is H This matrix is notorious for causing poor results in matrix computations. Try calculating inv H H to see if you obtain the identity matrix. You might find it interesting to discover other examples for which your graphing utility gives erroneous results. In general, you should always be aware that such errors are possible, and accept the outputs of your graphing utility with some skepticism.p

13 Keystrokes and Programming Syntax for Selected Examples Section., page Keystrokes and Programming Syntax for Selected Examples Selected examples in your text can be solved using a variety of graphing utilities and computer software programs. Keystrokes and programming syntax for these utilities/programs are provided on the following pages, for use with a variety of graphing utilities, MATLAB, Maple, Mathematica, and Derive. EXAMPLE Using Elimination to Rewrite a System in Row-Echelon Form Solve the system. x y z x y 4 x y z Keystrokes for TI- Enter the system into matrix A. To rewrite the system in row-echelon form, use the following keystrokes. MATRX ALPHA [A] MATRX ENTER ENTER Keystrokes for TI- Plus Enter the system into matrix A. To rewrite the system in row-echelon form, use the following keystrokes. nd [MATRX] ALPHA [A] nd [MATRX] ENTER ENTER Keystrokes for TI-4 Plus Enter the system into matrix A. To rewrite the system in row-echelon form, use the following keystrokes. nd [MATRIX] ALPHA [A] nd [MATRIX] ENTER ENTER Keystrokes for TI- Enter the system into matrix A. To rewrite the system in row-echelon form, use the following keystrokes. nd [MATRX] F4 F4 ALPHA [A] ENTER Keystrokes for TI- Enter the system into matrix A. To rewrite the system in row-echelon form, use the following keystrokes. nd [MATH] 4 alpha [A] ENTER Keystrokes for TI- and Voyage Enter the system into matrix A. To rewrite the system in row-echelon form, use the following keystrokes. nd [MATH] 4 A ENTER MATLAB, Maple, Mathematica, and Derive These computer software programs cannot produce row-echelon form. (Row-echelon form is not unique.)

14 4 Online Technology Guide Section., page EXAMPLE Elementary Row Operations Add times the first row to the third row to produce a new third row. (c) Original Matrix 4 Keystrokes for TI- To perform the elementary row operations, use the following keystrokes. MATRX ALPHA [F], MATRX,, ENTER Keystrokes for TI- Plus To perform the elementary row operations, use the following keystrokes. nd [MATRX] ALPHA [F], nd [MATRX],, Keystrokes for TI-4 Plus To perform the elementary row operations, use the following keystrokes. nd [MATRIX] ALPHA [F], nd [MATRIX],, Keystrokes for TI- To perform the elementary row operations, use the following keystrokes. nd [MATRX] F4 MORE F, nd [MATRX] F F,, Keystrokes for TI- To perform the elementary row operations, use the following keystrokes. nd [MATH] 4 alpha [J] 4, alpha [A],, ENTER Keystrokes for TI- and Voyage To perform the elementary row operations, use the following keystrokes. nd [MATH] 4 J 4, A,, ENTER Programming Syntax for MATLAB A(, :) *A(, :) A(, :) ENTER ENTER ENTER

15 Keystrokes and Programming Syntax for Selected Examples Section., page Programming Syntax for Maple with(linalg); A: addrow(a,,, ); Programming Syntax for Mathematica A A A A // MatrixForm Programming Syntax for Derive Subtract_Elements(A,,, ) EXAMPLE 4 Row-Echelon Form (f) 4 Keystrokes for TI- To rewrite the matrix in reduced row-echelon form, use the following keystrokes. MATRX ALPHA [B] MATRX ENTER ENTER Keystrokes for TI- Plus To rewrite the matrix in reduced row-echelon form, use the following keystrokes. nd [MATRX] ALPHA [B] nd [MATRX] ENTER ENTER Keystrokes for TI-4 Plus To rewrite the matrix in reduced row-echelon form, use the following keystrokes. nd [MATRIX] ALPHA [B] nd [MATRIX] ENTER ENTER Keystrokes for TI- To rewrite the matrix in reduced row-echelon form, use the following keystrokes. nd [MATRX] F4 F ALPHA [A] ENTER

16 Online Technology Guide Section., page Keystrokes for TI- To rewrite the matrix in reduced row-echelon form, use the following keystrokes. nd [MATH] 4 4 alpha [A] ENTER Keystrokes for TI- and Voyage To rewrite the matrix in reduced row-echelon form, use the following keystrokes. nd [MATH] 4 4 A ENTER Programming Syntax for MATLAB rref(a) Programming Syntax for Maple with(linalg); rref(a) Programming Syntax for Mathematica RowReduce[A] // MatrixForm Programming Syntax for Derive Row_Reduce(A) EXAMPLE Matrix Multiplication (c) Keystrokes for TI- Enter the matrices into matrix A and matrix B. To multiply the matrices, use the following keystrokes. MATRX MATRX ENTER

17 Keystrokes and Programming Syntax for Selected Examples Keystrokes for TI- Plus Enter the matrices into matrix A and matrix B. To multiply the matrices, use the following keystrokes. nd [MATRX] nd [MATRX] ENTER Keystrokes for TI-4 Plus Enter the matrices into matrix A and matrix B. To multiply the matrices, use the following keystrokes. nd [MATRIX] nd [MATRIX] ENTER Keystrokes for TI- Enter the matrices into matrix A and matrix B. To multiply the matrices, use the following keystrokes. nd [MATRX] F F F ENTER Keystrokes for TI- Enter the matrices into matrix A and matrix B. To multiply the matrices, use the following keystrokes. alpha [A] alpha [B] ENTER Keystrokes for TI- and Voyage Enter the matrices into matrix A and matrix B. To multiply the matrices, use the following keystrokes. A B ENTER Programming Syntax for MATLAB Enter the matrices into matrix A and matrix B. A*B Programming Syntax for Maple with(linalg); Enter the matrices into matrix A and matrix B. multiply(a, B); Programming Syntax for Mathematica Enter the matrices into matrix A and matrix B. A.B // MatrixForm Programming Syntax for Derive Enter the matrices into matrix A and matrix B. A * B

18 Online Technology Guide Section., page EXAMPLE Finding the Inverse of a Matrix Find the inverse of the matrix. A Keystrokes for TI- To find the inverse, use the following keystrokes. MATRX x ENTER Keystrokes for TI- Plus To find the inverse, use the following keystrokes. nd [MATRX] x ENTER Keystrokes for TI-4 Plus To find the inverse, use the following keystrokes. nd [MATRIX] x ENTER Keystrokes for TI- To find the inverse, use the following keystrokes. nd [MATRX] F F nd x ENTER Keystrokes for TI- To find the inverse, use the following keystrokes. alpha [A] ENTER Keystrokes for TI- and Voyage To find the inverse, use the following keystrokes. A ENTER > > Programming Syntax for MATLAB inv(a) Programming Syntax for Maple with(linalg); inverse(a);

19 Keystrokes and Programming Syntax for Selected Examples Section., page Programming Syntax for Mathematica Inverse[A] // MatrixForm Programming Syntax for Derive A ^ EXAMPLE 4 The Determinant of a Matrix of Order 4 Find the determinant of A 4. Keystrokes for TI- To find the determinant, use the following keystrokes. MATRX MATRX ENTER Keystrokes for TI- Plus To find the determinant, use the following keystrokes. nd [MATRX] nd [MATRX] ENTER Keystrokes for TI-4 Plus To find the determinant, use the following keystrokes. nd [MATRX] nd [MATRX] ENTER Keystrokes for TI- To find the determinant, use the following keystrokes. nd [MATRX] F F nd [M] F ENTER Keystrokes for TI- To find the determinant, use the following keystrokes. nd [MATH] 4 alpha [A] ENTER

20 Online Technology Guide Section.4, page Keystrokes for TI- and Voyage To find the determinant, use the following keystrokes. nd [MATH] 4 A ENTER Programming Syntax for MATLAB det(a) Programming Syntax for Maple with(linalg); det(a); Programming Syntax for Mathematica Det[A] Programming Syntax for Derive Det(A) EXAMPLE Finding Eigenvalues and Eigenvectors Find the eigenvalues and corresponding eigenvectors of the matrix Keystrokes for TI-, TI- Plus, and TI-4 Plus These graphing utilities cannot find eigenvalues. Keystrokes for TI- To find the eigenvalues, use the following keystrokes. nd [MATRX] F F4 nd [M] F ENTER Keystrokes for TI- To find the eigenvalues, use the following keystrokes. nd [MATH] 4 alpha [A] ENTER A 4.

21 Keystrokes and Programming Syntax for Selected Examples Section 4., page 4 Keystrokes for TI- and Voyage To find the eigenvalues, use the following keystrokes. nd [MATH] 4 A ENTER Programming Syntax for MATLAB eig(a) Programming Syntax for Maple with(linalg); eigenvalues(a); Programming Syntax for Mathematica Eigenvalues[A] Programming Syntax for Derive Eigenvalues(A) EXAMPLE 4 Vector Operations in R Provided that u,, and v,, in R, find each vector. (a) u v (b) u (c) v u Keystrokes for TI-, TI- Plus, and TI-4 Plus Store the vectors in lists L and L. To find each vector, use the following keystrokes. Part (a) nd [L] nd [L] ENTER Part (b) nd [L] ENTER Part (c) nd [L] nd [L] ENTER Keystrokes for TI- Enter the vectors into vector U and vector V. To find each vector, use the following keystrokes. Part (a) nd [VECTR] F F F ENTER Part (b) nd [VECTR] F F ENTER Part (c) nd [VECTR] F F F ENTER

22 Online Technology Guide Keystrokes for TI- Store the vectors in U and V. To find each vector, use the following keystrokes. Part (a) alpha [U] alpha [V] ENTER Part (b) alpha [U] ENTER Part (c) alpha [V] alpha [U] ENTER Keystrokes for TI- and Voyage Store the vectors in U and V. To find each vector, use the following keystrokes. Part (a) U V ENTER Part (b) U ENTER Part (c) V U ENTER Programming Syntax for MATLAB Enter the vectors into vector u and vector v. u v * u v * u Programming Syntax for Maple with(linalg); Enter the vectors into vector u and vector v. evalm(u v); evalm * u ; evalm v * u ; Programming Syntax for Mathematica Enter the vectors into vector u and vector v. u v u v u

23 Keystrokes and Programming Syntax for Selected Examples Section 4., page Programming Syntax for Derive Enter the vectors into vector u and vector v. u v u v u EXAMPLE Finding a Transition Matrix Find the transition matrix from B to for the bases for R listed below. B B,, 4, and B,,, Keystrokes for TI- Enter the matrices into matrix A and matrix B. To find the transition matrix, use the following keystrokes. MATRX ALPHA [B] MATRX MATRX, MATRX Keystrokes for TI- Plus Enter the matrices into matrix A and matrix B. To find the transition matrix, use the following keystrokes. nd [MATRX] ALPHA [B] nd [MATRX] nd [MATRX] [MATRX] ENTER Keystrokes for TI-4 Plus Enter the matrices into matrix A and matrix B. To find the transition matrix, use the following keystrokes. nd [MATRX] ALPHA [B] nd [MATRX] nd [MATRX] [MATRX] ENTER Keystrokes for TI- Enter the matrices into matrix A and matrix B. To find the transition matrix, use the following keystrokes. nd [MATRX] F4 F MORE F nd [M] F, ENTER Keystrokes for TI- Enter the matrices into matrix A and matrix B. To find the transition matrix, use the following keystrokes. nd [MATH] 4 4 nd [MATH] 4 alpha [B], alpha [A] ENTER F ENTER,, nd nd

24 4 Online Technology Guide Section., page Keystrokes for TI- and Voyage Enter the matrices into matrix A and matrix B. To find the transition matrix, use the following keystrokes. nd [MATH] 4 4 nd [MATH] 4 B, A Programming Syntax for MATLAB Enter the matrices into matrix B and matrix BPRIME. rref([bprime B]) Programming Syntax for Maple with(linalg); Enter the matrices into matrix B and matrix BPRIME. rref(augment(bprime, B)); Programming Syntax for Mathematica Enter the matrices into matrix B and matrix BPRIME. <<LinearAlgebra`MatrixManipulation` RowReduce[AppendRows[BPRIME, B]] // MatrixForm Programming Syntax for Derive Enter the matrices into matrix B and matrix BPRIME. Row_Reduce(Append_Columns(BPRIME, B)) ENTER EXAMPLE The Length of a Vector in R n (a) Find the length of v,,, 4,. Keystrokes for TI-, TI- Plus, and TI-4 Plus These graphing utilities cannot find the length of a vector. Keystrokes for TI- Enter the vector into vector V. To find the length, use the following keystrokes. nd [VECTR] F F nd [M] F ENTER Keystrokes for TI- Store the vector in V. To find the length, use the following keystrokes. nd [MATH] 4 alpha [H] alpha [V] ENTER

25 Keystrokes and Programming Syntax for Selected Examples Keystrokes for TI- and Voyage Store the vector in V. To find the length, use the following keystrokes. nd [MATH] 4 H V ENTER Programming Syntax for MATLAB Enter the vector into vector v. norm(v) Programming Syntax for Maple with(linalg); Enter the vector into vector v. norm(v, ); Programming Syntax for Mathematica Enter the vector into vector v. <<LinearAlgebra`MatrixManipulation` VectorNorm[N[v], ] Programming Syntax for Derive Enter the vector into vector v. Abs(v) Section., page, Technology Note Find the unit vector for v, 4. Keystrokes for TI-, TI- Plus, and TI-4 Plus These graphing utilities cannot find the unit vector. Keystrokes for TI- Enter the vector into vector V. To find the unit vector, use the following keystrokes. nd [VECTR] F F nd [M] F ENTER Keystrokes for TI- Store the vector in V. To find the unit vector, use the following keystrokes. nd [MATH] 4 alpha [L] alpha [V] ENTER

26 Online Technology Guide Section., page Keystrokes for TI- and Voyage Store the vector in V. To find the unit vector, use the following keystrokes. nd [MATH] 4 L V ENTER Programming Syntax for MATLAB Enter the vector into vector v. v/norm(v) Programming Syntax for Maple with(linalg); Enter the vector into vector v. evalm(v/norm(v, )); Programming Syntax for Mathematica Enter the vector into vector v. <<LinearAlgebra`MatrixManipulation` v/vectornorm[n[v], ] Programming Syntax for Derive Enter the vector into vector v. v/abs(v) EXAMPLE 4 Finding the Dot Product of Two Vectors Find the dot product of u,,, and v,, 4,. Keystrokes for TI-, TI- Plus, and TI-4 Plus These graphing utilities cannot find the dot product. Keystrokes for TI- Enter the vectors into vector U and vector V. To find the dot product, use the following keystrokes. nd [VECTR] F F4 nd [M] F, F ENTER Keystrokes for TI- Store the vectors in U and V. To find the dot product, use the following keystrokes. nd [MATH] 4 alpha [L] alpha [U], alpha [V] ENTER

27 Keystrokes and Programming Syntax for Selected Examples Section., page Keystrokes for TI- and Voyage Store the vectors in U and V. To find the dot product, use the following keystrokes. nd [MATH] 4 L U, V ENTER Programming Syntax for MATLAB Enter the vectors into vector u and vector v. dot(u, v) Programming Syntax for Maple with(linalg); Enter the vectors into vector u and vector v. dotprod(u, v); Programming Syntax for Mathematica Enter the vectors into vector u and vector v. u.v Programming Syntax for Derive Enter the vectors into vector u and vector v. u.v EXAMPLE Using the Inner Product on C [, ] (Calculus) Use the inner product defined in Example and the functions f x x and g x x in C, to find (b) d f, g. Keystrokes for TI-, TI- Plus, and TI-4 Plus To find d f, g, use the following keystrokes. nd MATH X,T,,n X,T,,n x x, X,T,,n,, ENTER Keystrokes for TI- To find d f, g, use the following keystrokes. nd nd [CALC] F x-var x-var x x, x-var, ENTER,

28 Online Technology Guide Keystrokes for TI-, TI-, and Voyage To find d f, g, use the following keystrokes. nd F X X, X,, > > ENTER Programming Syntax for MATLAB MATLAB cannot calculate inner products. Programming Syntax for Maple sqrt(int((x x^)^, x..)); Programming Syntax for Mathematica Sqrt[Integrate[(x x^)^, {x,, }]] Programming Syntax for Derive sqrt(int((x x^)^, x,, )) Section.4, page EXAMPLE Solving the Normal Equations Find the solution of the least squares problem Ax b c c. Keystrokes for TI-, TI- Plus, and TI-4 Plus Enter the data into lists L and L. To find the least squares regression line, use the following keystrokes. STAT 4 nd [L], nd [L] ENTER Keystrokes for TI- Use nd [STAT] F to enter the data. There should be a in each row of the f Stat column. To find the least squares regression line, use the following keystrokes. nd [STAT] F F ENTER

29 Keystrokes and Programming Syntax for Selected Examples Keystrokes for TI- Enter the data into c and c using the Data/Matrix Editor. To find the least squares regression line, use the following keystrokes while in the Data/Matrix Editor. F alpha [c] alpha [c] ENTER ENTER Keystrokes for TI- and Voyage Enter the data into c and c using the Data/Matrix Editor. To find the least squares regression line, use the following keystrokes while in the Data/Matrix Editor. F c c ENTER ENTER Programming Syntax for MATLAB x [ ]; y [ ]; polyfit(x, y, ) Programming Syntax for Maple with(statistics); xvalues := vector([,, ]); yvalues := vector([,, ]); Fit( a*x b, xvalues, yvalues, x); Programming Syntax for Mathematica data {{, }, {, }, {, }} Fit[data, {, x}, x] Programming Syntax for Derive Fit([x, a*x b], [[, ], [, ], [, ]])

30 Online Technology Guide Section.4, page EXAMPLE Application to Astronomy Table. shows the mean distances x and the periods y of the six planets that are closest to the sun. The mean distance is given in terms of astronomical units (where the Earth s mean distance is defined to be.), and the period is provided in years. Find a model for these data. (Source: CRC Handbook of Chemistry and Physics) TABLE. Planet Mercury Venus Earth Mars Jupiter Saturn Distance, x Period, y Keystrokes for TI-, TI- Plus, and TI-4 Plus Enter the data into lists L and L. To find the power model, use the following keystrokes. STAT ALPHA [A] nd [L], nd [L] ENTER Keystrokes for TI- Use nd [STAT] F to enter the data. There should be a in each row of the f Stat column. To find the power model, use the following keystrokes. nd [STAT] F MORE F ENTER Keystrokes for TI- Enter the data into c and c using the Data/Matrix Editor. To find the power model, use the following keystrokes while in the Data/Matrix Editor. F alpha [c] alpha [c] ENTER ENTER Keystrokes for TI- and Voyage Enter the data into c and c using the Data/Matrix Editor. To find the power model, use the following keystrokes while in the Data/Matrix Editor. F c c ENTER ENTER Programming Syntax for MATLAB x [ ]; y [ ]; polyfit(log(x), log(y), )

31 Keystrokes and Programming Syntax for Selected Examples Section., page Programming Syntax for Maple with(statistics); xvalues := vector([.,.,.,.,.,.4]); yvalues := vector([.4,.,.,.,.,.4]); Fit( a*x ^b, xvalues, yvalues, x); Programming Syntax for Mathematica <<Statistics`NonLinearFit` data = {{.,.4}, {.,.}, {.,.}, {.,.}, {.,.}, {.4,.4}} NonlinearFit[data, a*x^b, x, {a, b}] Programming Syntax for Derive Derive cannot calculate power models. EXAMPLE Finding the Cross Product of Two Vectors Provided that u i j k and v i j k, find (a) u v. Keystrokes for TI-, TI- Plus, and TI-4 Plus These graphing utilities cannot find the cross product. Keystrokes for TI- Enter the vectors into vector U and vector V. To find the cross product, use the following keystrokes. nd [VECTR] F F nd [M] F, F ENTER Keystrokes for TI- Store the vectors in U and V. To find the cross product, use the following keystrokes. nd [MATH] 4 alpha [L] alpha [U], alpha [V] Keystrokes for TI- and Voyage Store the vectors in U and V. To find the cross product, use the following keystrokes. nd [MATH] 4 L U, V ENTER ENTER

32 Online Technology Guide Section., page 4 Programming Syntax for MATLAB Enter the vectors into vector u and vector v. cross(u, v) Programming Syntax for Maple with(linalg); Enter the vectors into vector u and vector v. crossprod(u, v); Programming Syntax for Mathematica Enter the vectors into vector u and vector v. Cross[u, v] Programming Syntax for Derive Enter the vectors into vector u and vector v. Cross(u, v) EXAMPLE Finding Eigenvalues and Eigenvectors Find the eigenvalues of A. Keystrokes for TI-, TI- Plus, and TI-4 Plus These graphing utilities cannot find eigenvalues or eigenvectors. Keystrokes for TI- To find the eigenvalues and eigenvectors, use the following keystrokes. nd [MATRX] F F4 nd [M] F ENTER nd [M] F nd [M] F ENTER Keystrokes for TI- To find the eigenvalues and eigenvectors, use the following keystrokes. nd [MATH] 4 alpha [A] ENTER nd [MATH] 4 alpha [A] alpha [A] ENTER

33 Keystrokes and Programming Syntax for Selected Examples Keystrokes for TI- and Voyage To find the eigenvalues and eigenvectors, use the following keystrokes. nd [MATH] 4 A ENTER nd [MATH] 4 A A ENTER Programming Syntax for MATLAB [V, D] eig(a) Programming Syntax for Maple with(linalg); eigenvalues(a); eigenvectors(a); Programming Syntax for Mathematica Eigensystem[A] // MatrixForm Programming Syntax for Derive Eigenvalues(A) Derive cannot find eigenvectors.

MATLAB Lecture 1. Introduction to MATLAB

MATLAB Lecture 1. Introduction to MATLAB MATLAB Lecture 1. Introduction to MATLAB 1.1 The MATLAB environment MATLAB is a software program that allows you to compute interactively with matrices. If you want to know for instance the product of

More information

Matrices. Matrices on the TI Creating, Storing, and Displaying Matrices Using Mathematical Functions with Matrices...

Matrices. Matrices on the TI Creating, Storing, and Displaying Matrices Using Mathematical Functions with Matrices... 13 Matrices Matrices on the TI-86... 178 Creating, Storing, and Displaying Matrices... 178 Using Mathematical Functions with Matrices... 185 TI -86 M1 M2 M3 M4 M5 F1 F2 F3 F4 F5 178 Chapter 13: Matrices

More information

Basic Matrix Manipulation with a TI-89/TI-92/Voyage 200

Basic Matrix Manipulation with a TI-89/TI-92/Voyage 200 Basic Matrix Manipulation with a TI-89/TI-92/Voyage 200 Often, a matrix may be too large or too complex to manipulate by hand. For these types of matrices, we can employ the help of graphing calculators

More information

4. Linear Algebra. In maple, it is first necessary to call in the linear algebra package. This is done by the following maple command

4. Linear Algebra. In maple, it is first necessary to call in the linear algebra package. This is done by the following maple command 4. Linear Algebra Vectors and Matrices Maple has this wonderful linear algebra package. It has to do with vectors and matrices. A vector is simply an array of numbers written as () where a matrix is written

More information

Performing Matrix Operations on the TI-83/84

Performing Matrix Operations on the TI-83/84 Page1 Performing Matrix Operations on the TI-83/84 While the layout of most TI-83/84 models are basically the same, of the things that can be different, one of those is the location of the Matrix key.

More information

Mathematics 4330/5344 #1 Matlab and Numerical Approximation

Mathematics 4330/5344 #1 Matlab and Numerical Approximation David S. Gilliam Department of Mathematics Texas Tech University Lubbock, TX 79409 806 742-2566 gilliam@texas.math.ttu.edu http://texas.math.ttu.edu/~gilliam Mathematics 4330/5344 #1 Matlab and Numerical

More information

Identity Matrix: >> eye(3) ans = Matrix of Ones: >> ones(2,3) ans =

Identity Matrix: >> eye(3) ans = Matrix of Ones: >> ones(2,3) ans = Very Basic MATLAB Peter J. Olver January, 2009 Matrices: Type your matrix as follows: Use space or, to separate entries, and ; or return after each row. >> [;5 0-3 6;; - 5 ] or >> [,5,6,-9;5,0,-3,6;7,8,5,0;-,,5,]

More information

Solving Systems of Equations Using Matrices With the TI-83 or TI-84

Solving Systems of Equations Using Matrices With the TI-83 or TI-84 Solving Systems of Equations Using Matrices With the TI-83 or TI-84 Dimensions of a matrix: The dimensions of a matrix are the number of rows by the number of columns in the matrix. rows x columns *rows

More information

Teaching Manual Math 2131

Teaching Manual Math 2131 Math 2131 Linear Algebra Labs with MATLAB Math 2131 Linear algebra with Matlab Teaching Manual Math 2131 Contents Week 1 3 1 MATLAB Course Introduction 5 1.1 The MATLAB user interface...........................

More information

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx 1 of 9 FreeMat Tutorial FreeMat is a general purpose matrix calculator. It allows you to enter matrices and then perform operations on them in the same way you would write the operations on paper. This

More information

Introduction to MATLAB

Introduction to MATLAB CHEE MATLAB Tutorial Introduction to MATLAB Introduction In this tutorial, you will learn how to enter matrices and perform some matrix operations using MATLAB. MATLAB is an interactive program for numerical

More information

Essentials for the TI-83+

Essentials for the TI-83+ Essentials for the TI-83+ Special Keys. O S O O Press and release, then press the appropriate key to access the 2nd (yellow) operation. Press and release to access characters and letters indicated above

More information

Computer Packet 1 Row Operations + Freemat

Computer Packet 1 Row Operations + Freemat Computer Packet 1 Row Operations + Freemat For this packet, you will use a website to do row operations, and then learn to use a general purpose matrix calculator called FreeMat. To reach the row operations

More information

Lecture 2: Variables, Vectors and Matrices in MATLAB

Lecture 2: Variables, Vectors and Matrices in MATLAB Lecture 2: Variables, Vectors and Matrices in MATLAB Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE201: Computer Applications. See Textbook Chapter 1 and Chapter 2. Variables

More information

x = 12 x = 12 1x = 16

x = 12 x = 12 1x = 16 2.2 - The Inverse of a Matrix We've seen how to add matrices, multiply them by scalars, subtract them, and multiply one matrix by another. The question naturally arises: Can we divide one matrix by another?

More information

Fundamentals of MATLAB Usage

Fundamentals of MATLAB Usage 수치해석기초 Fundamentals of MATLAB Usage 2008. 9 담당교수 : 주한규 joohan@snu.ac.kr, x9241, Rm 32-205 205 원자핵공학과 1 MATLAB Features MATLAB: Matrix Laboratory Process everything based on Matrix (array of numbers) Math

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Andreas C. Kapourani (Credit: Steve Renals & Iain Murray) 9 January 08 Introduction MATLAB is a programming language that grew out of the need to process matrices. It is used extensively

More information

LAB 2: Linear Equations and Matrix Algebra. Preliminaries

LAB 2: Linear Equations and Matrix Algebra. Preliminaries Math 250C, Section C2 Hard copy submission Matlab # 2 1 Revised 07/13/2016 LAB 2: Linear Equations and Matrix Algebra In this lab you will use Matlab to study the following topics: Solving a system of

More information

MATH 3511 Basics of MATLAB

MATH 3511 Basics of MATLAB MATH 3511 Basics of MATLAB Dmitriy Leykekhman Spring 2012 Topics Sources. Entering Matrices. Basic Operations with Matrices. Build in Matrices. Build in Scalar and Matrix Functions. if, while, for m-files

More information

MATH 5520 Basics of MATLAB

MATH 5520 Basics of MATLAB MATH 5520 Basics of MATLAB Dmitriy Leykekhman Spring 2011 Topics Sources. Entering Matrices. Basic Operations with Matrices. Build in Matrices. Build in Scalar and Matrix Functions. if, while, for m-files

More information

MATH 423 Linear Algebra II Lecture 17: Reduced row echelon form (continued). Determinant of a matrix.

MATH 423 Linear Algebra II Lecture 17: Reduced row echelon form (continued). Determinant of a matrix. MATH 423 Linear Algebra II Lecture 17: Reduced row echelon form (continued). Determinant of a matrix. Row echelon form A matrix is said to be in the row echelon form if the leading entries shift to the

More information

Matlab and Octave: Quick Introduction and Examples 1 Basics

Matlab and Octave: Quick Introduction and Examples 1 Basics Matlab and Octave: Quick Introduction and Examples 1 Basics 1.1 Syntax and m-files There is a shell where commands can be written in. All commands must either be built-in commands, functions, names of

More information

Chapter 2 Systems of Linear Equations and Matrices

Chapter 2 Systems of Linear Equations and Matrices Chapter 2 Systems of Linear Equations and Matrices LOCATION IN THE OTHER TEXTS: Finite Mathematics and Calculus with Applications: Chapter 2 Solution of Linear Systems by the Gauss-Jordan Method. Row Operations.

More information

MTH309 Linear Algebra: Maple Guide

MTH309 Linear Algebra: Maple Guide MTH309 Linear Algebra: Maple Guide Section 1. Row Echelon Form (REF) and Reduced Row Echelon Form (RREF) Example. Calculate the REF and RREF of the matrix Solution. Use the following command to insert

More information

MATLAB COURSE FALL 2004 SESSION 1 GETTING STARTED. Christian Daude 1

MATLAB COURSE FALL 2004 SESSION 1 GETTING STARTED. Christian Daude 1 MATLAB COURSE FALL 2004 SESSION 1 GETTING STARTED Christian Daude 1 Introduction MATLAB is a software package designed to handle a broad range of mathematical needs one may encounter when doing scientific

More information

MATH (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab

MATH (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab MATH 495.3 (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab Below is a screen similar to what you should see when you open Matlab. The command window is the large box to the right containing the

More information

hp calculators hp 39g+ & hp 39g/40g Using Matrices How are matrices stored? How do I solve a system of equations? Quick and easy roots of a polynomial

hp calculators hp 39g+ & hp 39g/40g Using Matrices How are matrices stored? How do I solve a system of equations? Quick and easy roots of a polynomial hp calculators hp 39g+ Using Matrices Using Matrices The purpose of this section of the tutorial is to cover the essentials of matrix manipulation, particularly in solving simultaneous equations. How are

More information

(Creating Arrays & Matrices) Applied Linear Algebra in Geoscience Using MATLAB

(Creating Arrays & Matrices) Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB (Creating Arrays & Matrices) Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional

More information

Lab of COMP 406. MATLAB: Quick Start. Lab tutor : Gene Yu Zhao Mailbox: or Lab 1: 11th Sep, 2013

Lab of COMP 406. MATLAB: Quick Start. Lab tutor : Gene Yu Zhao Mailbox: or Lab 1: 11th Sep, 2013 Lab of COMP 406 MATLAB: Quick Start Lab tutor : Gene Yu Zhao Mailbox: csyuzhao@comp.polyu.edu.hk or genexinvivian@gmail.com Lab 1: 11th Sep, 2013 1 Where is Matlab? Find the Matlab under the folder 1.

More information

Beginner s Mathematica Tutorial

Beginner s Mathematica Tutorial Christopher Lum Autonomous Flight Systems Laboratory Updated: 12/09/05 Introduction Beginner s Mathematica Tutorial This document is designed to act as a tutorial for an individual who has had no prior

More information

MATLAB and Numerical Analysis

MATLAB and Numerical Analysis School of Mechanical Engineering Pusan National University dongwoonkim@pusan.ac.kr Teaching Assistant 김동운 dongwoonkim@pusan.ac.kr 윤종희 jongheeyun@pusan.ac.kr Lab office: 통합기계관 120호 ( 510-3921) 방사선영상연구실홈페이지

More information

Solutions to Programming Assignment Four Simultaneous Linear Equations

Solutions to Programming Assignment Four Simultaneous Linear Equations College of Engineering and Computer Science Mechanical Engineering Department Mechanical Engineering 309 Numerical Analysis of Engineering Systems Spring 2014 Number: 15237 Instructor: Larry Caretto Solutions

More information

MAT 343 Laboratory 2 Solving systems in MATLAB and simple programming

MAT 343 Laboratory 2 Solving systems in MATLAB and simple programming MAT 343 Laboratory 2 Solving systems in MATLAB and simple programming In this laboratory session we will learn how to 1. Solve linear systems with MATLAB 2. Create M-files with simple MATLAB codes Backslash

More information

Part #1. A0B17MTB Matlab. Miloslav Čapek Filip Kozák, Viktor Adler, Pavel Valtr

Part #1. A0B17MTB Matlab. Miloslav Čapek Filip Kozák, Viktor Adler, Pavel Valtr A0B17MTB Matlab Part #1 Miloslav Čapek miloslav.capek@fel.cvut.cz Filip Kozák, Viktor Adler, Pavel Valtr Department of Electromagnetic Field B2-626, Prague You will learn Scalars, vectors, matrices (class

More information

MATLAB GUIDE UMD PHYS401 SPRING 2012

MATLAB GUIDE UMD PHYS401 SPRING 2012 MATLAB GUIDE UMD PHYS40 SPRING 202 We will be using Matlab (or, equivalently, the free clone GNU/Octave) this semester to perform calculations involving matrices and vectors. This guide gives a brief introduction

More information

Graphics calculator instructions

Graphics calculator instructions Graphics calculator instructions Contents: A B C D E F G Basic calculations Basic functions Secondary function and alpha keys Memory Lists Statistical graphs Working with functions 10 GRAPHICS CALCULATOR

More information

A 30 Minute Introduction to Octave ENGR Engineering Mathematics Tony Richardson

A 30 Minute Introduction to Octave ENGR Engineering Mathematics Tony Richardson A 30 Minute Introduction to Octave ENGR 390 - Engineering Mathematics Tony Richardson Introduction This is a brief introduction to Octave. It covers several topics related to both the statistics and linear

More information

Introduction to MatLab. Introduction to MatLab K. Craig 1

Introduction to MatLab. Introduction to MatLab K. Craig 1 Introduction to MatLab Introduction to MatLab K. Craig 1 MatLab Introduction MatLab and the MatLab Environment Numerical Calculations Basic Plotting and Graphics Matrix Computations and Solving Equations

More information

Introduction to Engineering gii

Introduction to Engineering gii 25.108 Introduction to Engineering gii Dr. Jay Weitzen Lecture Notes I: Introduction to Matlab from Gilat Book MATLAB - Lecture # 1 Starting with MATLAB / Chapter 1 Topics Covered: 1. Introduction. 2.

More information

The CATALOG, Variables, and Characters

The CATALOG, Variables, and Characters 2 The CATALOG, Variables, and Characters The CATALOG... 38 Storing Data to Variables... 39 Classifying Variables as Data Types... 42 The CUSTOM Menu... 44 The CHAR (Character) Menu... 45 TI -86 M1 M2 M3

More information

OVERVIEW DISPLAYING NUMBERS IN SCIENTIFIC NOTATION ENTERING NUMBERS IN SCIENTIFIC NOTATION

OVERVIEW DISPLAYING NUMBERS IN SCIENTIFIC NOTATION ENTERING NUMBERS IN SCIENTIFIC NOTATION OVERVIEW The intent of this material is to provide instruction for the TI-86 graphing calculator that may be used in conjunction with the second edition of Gary Rockswold's College Algebra Through Modeling

More information

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial 1 Matlab Tutorial 2 Lecture Learning Objectives Each student should be able to: Describe the Matlab desktop Explain the basic use of Matlab variables Explain the basic use of Matlab scripts Explain the

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Introduction MATLAB is an interactive package for numerical analysis, matrix computation, control system design, and linear system analysis and design available on most CAEN platforms

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB MATLAB stands for MATrix LABoratory. Originally written by Cleve Moler for college linear algebra courses, MATLAB has evolved into the premier software for linear algebra computations

More information

Linear Algebra in LabVIEW

Linear Algebra in LabVIEW https://www.halvorsen.blog Linear Algebra in LabVIEW Hans-Petter Halvorsen, 2018-04-24 Preface This document explains the basic concepts of Linear Algebra and how you may use LabVIEW for calculation of

More information

Mathematical Experiments with Mathematica

Mathematical Experiments with Mathematica Mathematical Experiments with Mathematica Instructor: Valentina Kiritchenko Classes: F 12:00-1:20 pm E-mail : vkiritchenko@yahoo.ca, vkiritch@hse.ru Office hours : Th 5:00-6:20 pm, F 3:30-5:00 pm 1. Syllabus

More information

2.0 MATLAB Fundamentals

2.0 MATLAB Fundamentals 2.0 MATLAB Fundamentals 2.1 INTRODUCTION MATLAB is a computer program for computing scientific and engineering problems that can be expressed in mathematical form. The name MATLAB stands for MATrix LABoratory,

More information

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots Programming in

More information

CME 192: Introduction to Matlab

CME 192: Introduction to Matlab CME 192: Introduction to Matlab Matlab Basics Brett Naul January 15, 2015 Recap Using the command window interactively Variables: Assignment, Identifier rules, Workspace, command who and whos Setting the

More information

Maths for Signals and Systems Linear Algebra in Engineering. Some problems by Gilbert Strang

Maths for Signals and Systems Linear Algebra in Engineering. Some problems by Gilbert Strang Maths for Signals and Systems Linear Algebra in Engineering Some problems by Gilbert Strang Problems. Consider u, v, w to be non-zero vectors in R 7. These vectors span a vector space. What are the possible

More information

Summer 2009 REU: Introduction to Matlab

Summer 2009 REU: Introduction to Matlab Summer 2009 REU: Introduction to Matlab Moysey Brio & Paul Dostert June 29, 2009 1 / 19 Using Matlab for the First Time Click on Matlab icon (Windows) or type >> matlab & in the terminal in Linux. Many

More information

MBI REU Matlab Tutorial

MBI REU Matlab Tutorial MBI REU Matlab Tutorial Lecturer: Reginald L. McGee II, Ph.D. June 8, 2017 MATLAB MATrix LABoratory MATLAB is a tool for numerical computation and visualization which allows Real & Complex Arithmetics

More information

1.1 ABOUT MATLAB and MATLAB GUI (Graphical User Interface)

1.1 ABOUT MATLAB and MATLAB GUI (Graphical User Interface) Chapter 1 Introduction The Taylor Series is one of the most important tools in numerical analysis. It constitutes the foundation of numerical methods and will be used in most of the chapters of this text.

More information

LabVIEW MathScript Quick Reference

LabVIEW MathScript Quick Reference Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics LabVIEW MathScript Quick Reference Hans-Petter Halvorsen, 2012.06.14 Faculty of Technology, Postboks

More information

Introduction to Matlab. By: Dr. Maher O. EL-Ghossain

Introduction to Matlab. By: Dr. Maher O. EL-Ghossain Introduction to Matlab By: Dr. Maher O. EL-Ghossain Outline: q What is Matlab? Matlab Screen Variables, array, matrix, indexing Operators (Arithmetic, relational, logical ) Display Facilities Flow Control

More information

ECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu

ECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu ECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu 0. What is MATLAB? 1 MATLAB stands for matrix laboratory and is one of the most popular software for numerical computation. MATLAB s basic

More information

CS129: Introduction to Matlab (Code)

CS129: Introduction to Matlab (Code) CS129: Introduction to Matlab (Code) intro.m Introduction to Matlab (adapted from http://www.stanford.edu/class/cs223b/matlabintro.html) Stefan Roth , 09/08/2003 Stolen

More information

3.1 Solving Systems Using Tables and Graphs

3.1 Solving Systems Using Tables and Graphs Algebra 2 Chapter 3: Systems of Equations Mrs. Leahy 3.1 Solving Systems Using Tables and Graphs A solution to a system of linear equations is an that makes all of the equations. To solve a system of equations

More information

Arrays and Matrix Operations

Arrays and Matrix Operations 9 Arrays and Matrix Operations 1 THE PRIMARY MATLAB DATA STRUCTURE As we have previously stated, the basic data element in the MATLAB system is the array. A scalar is represented as a 1 * 1 array that

More information

Introduction to MATLAB

Introduction to MATLAB Chapter 1 Introduction to MATLAB 1.1 Software Philosophy Matrix-based numeric computation MATrix LABoratory built-in support for standard matrix and vector operations High-level programming language Programming

More information

Basic Calculator Functions

Basic Calculator Functions Algebra I Common Graphing Calculator Directions Name Date Throughout our course, we have used the graphing calculator to help us graph functions and perform a variety of calculations. The graphing calculator

More information

6-2 Matrix Multiplication, Inverses and Determinants

6-2 Matrix Multiplication, Inverses and Determinants Find AB and BA, if possible. 4. A = B = A = ; B = A is a 2 1 matrix and B is a 1 4 matrix. Because the number of columns of A is equal to the number of rows of B, AB exists. To find the first entry of

More information

Table of Contents. Basis CEMTool 7 Tutorial

Table of Contents. Basis CEMTool 7 Tutorial PREFACE CEMTool (Computer-aided Engineering & Mathematics Tool) is a useful computational tool in science and engineering. No matter what you background be it physics, chemistry, math, or engineering it

More information

A GUIDE FOR USING MATLAB IN COMPUTER SCIENCE AND COMPUTER ENGINEERING TABLE OF CONTENTS

A GUIDE FOR USING MATLAB IN COMPUTER SCIENCE AND COMPUTER ENGINEERING TABLE OF CONTENTS A GUIDE FOR USING MATLAB IN COMPUTER SCIENCE AND COMPUTER ENGINEERING MARC THOMAS AND CHRISTOPHER PASCUA TABLE OF CONTENTS 1. Language Usage and Matlab Interface 1 2. Matlab Global Syntax and Semantic

More information

Introduction to MATLAB

Introduction to MATLAB Computational Photonics, Seminar 0 on Introduction into MATLAB, 3.04.08 Page Introduction to MATLAB Operations on scalar variables >> 6 6 Pay attention to the output in the command window >> b = b = >>

More information

Graphics calculator instructions

Graphics calculator instructions Graphics calculator instructions Contents: A Basic calculations B Basic functions C Secondary function and alpha keys D Memory E Lists F Statistical graphs G Working with functions H Two variable analysis

More information

Activity Overview A basic introduction to the many features of the calculator function of the TI-Nspire

Activity Overview A basic introduction to the many features of the calculator function of the TI-Nspire TI-Nspire Activity: An Introduction to the TI-Nspire Calculator Function By: Leigh T Baker Activity Overview A basic introduction to the many features of the calculator function of the TI-Nspire Concepts

More information

Matlab Tutorial, CDS

Matlab Tutorial, CDS 29 September 2006 Arrays Built-in variables Outline Operations Linear algebra Polynomials Scripts and data management Help: command window Elisa (see Franco next slide), Matlab Tutorial, i.e. >> CDS110-101

More information

Lecture 2. Arrays. 1 Introduction

Lecture 2. Arrays. 1 Introduction 1 Introduction Lecture 2 Arrays As the name Matlab is a contraction of matrix laboratory, you would be correct in assuming that Scilab/Matlab have a particular emphasis on matrices, or more generally,

More information

Math 1B03/1ZC3 - Tutorial 3. Jan. 24th/28th, 2014

Math 1B03/1ZC3 - Tutorial 3. Jan. 24th/28th, 2014 Math 1B03/1ZC3 - Tutorial 3 Jan. 24th/28th, 2014 Tutorial Info: Website: http://ms.mcmaster.ca/ dedieula. Math Help Centre: Wednesdays 2:30-5:30pm. Email: dedieula@math.mcmaster.ca. Elementary Matrices

More information

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks MATLAB Basics Stanley Liang, PhD York University Configure a MATLAB Package Get a MATLAB Student License on Matworks Visit MathWorks at https://www.mathworks.com/ It is recommended signing up with a student

More information

A Brief MATLAB Tutorial

A Brief MATLAB Tutorial POLYTECHNIC UNIVERSITY Department of Computer and Information Science A Brief MATLAB Tutorial K. Ming Leung Abstract: We present a brief MATLAB tutorial covering only the bare-minimum that a beginner needs

More information

Computational Photonics, Seminar 01 on Introduction into MATLAB, Page 1

Computational Photonics, Seminar 01 on Introduction into MATLAB, Page 1 Computational Photonics, Seminar 0 on Introduction into MATLAB,.04.06 Page Introduction to MATLAB Operations on scalar variables >> a=6 6 Pay attention to the response from the workspace >> b= b = >> a+b

More information

MAT 275 Laboratory 2 Matrix Computations and Programming in MATLAB

MAT 275 Laboratory 2 Matrix Computations and Programming in MATLAB MATLAB sessions: Laboratory MAT 75 Laboratory Matrix Computations and Programming in MATLAB In this laboratory session we will learn how to. Create and manipulate matrices and vectors.. Write simple programs

More information

Note: The last command (10-5) will generate an error message. Can you see why the calculator is having difficulty deciphering the command?

Note: The last command (10-5) will generate an error message. Can you see why the calculator is having difficulty deciphering the command? Arithmetic on the TI 8/84 Your calculator is incredibly powerful and relatively easy to use. This activity will touch on a small part of its capabilities. There are two keys that look very much alike,

More information

CMAT Language - Language Reference Manual COMS 4115

CMAT Language - Language Reference Manual COMS 4115 CMAT Language - Language Reference Manual COMS 4115 Language Guru: Michael Berkowitz (meb2235) Project Manager: Frank Cabada (fc2452) System Architect: Marissa Ojeda (mgo2111) Tester: Daniel Rojas (dhr2119)

More information

For example, the system. 22 may be represented by the augmented matrix

For example, the system. 22 may be represented by the augmented matrix Matrix Solutions to Linear Systems A matrix is a rectangular array of elements. o An array is a systematic arrangement of numbers or symbols in rows and columns. Matrices (the plural of matrix) may be

More information

MATLAB: The Basics. Dmitry Adamskiy 9 November 2011

MATLAB: The Basics. Dmitry Adamskiy 9 November 2011 MATLAB: The Basics Dmitry Adamskiy adamskiy@cs.rhul.ac.uk 9 November 2011 1 Starting Up MATLAB Windows users: Start up MATLAB by double clicking on the MATLAB icon. Unix/Linux users: Start up by typing

More information

Graphics calculator instructions

Graphics calculator instructions Graphics calculator instructions Contents: A B C D E F G Basic calculations Basic functions Secondary function and alpha keys Memory Lists Statistical graphs Working with functions 10 GRAPHICS CALCULATOR

More information

MATLAB TUTORIAL FOR MATH/CHEG 305

MATLAB TUTORIAL FOR MATH/CHEG 305 MATLAB TUTORIAL FOR MATH/CHEG 305 February 1, 2002 Contents 1 Starting Matlab 2 2 Entering Matrices, Basic Operations 2 3 Editing Command Lines 4 4 Getting Help 4 5 Interrupting, Quitting Matlab 5 6 Special

More information

TUTORIAL 1 Introduction to Matrix Calculation using MATLAB TUTORIAL 1 INTRODUCTION TO MATRIX CALCULATION USING MATLAB

TUTORIAL 1 Introduction to Matrix Calculation using MATLAB TUTORIAL 1 INTRODUCTION TO MATRIX CALCULATION USING MATLAB INTRODUCTION TO MATRIX CALCULATION USING MATLAB Learning objectives Getting started with MATLAB and it s user interface Learn some of MATLAB s commands and syntaxes Get a simple introduction to use of

More information

TI-89 Titanium Workshop Saturday, July 17 th 2004

TI-89 Titanium Workshop Saturday, July 17 th 2004 TI-89 Titanium Workshop Saturday, July 17 th 2004 TI-89 Titanium Hands-On Activities TI-89 Titanium Geography : Apps Desktop Turning ON the Apps Desktop: 1. Press MODE 2. Press 3. Scroll down to the Apps

More information

Chapter 1 MATLAB Preliminaries

Chapter 1 MATLAB Preliminaries Chapter 1 MATLAB Preliminaries 1.1 INTRODUCTION MATLAB (Matrix Laboratory) is a high-level technical computing environment developed by The Mathworks, Inc. for mathematical, scientific, and engineering

More information

CAMBRIDGE TECHNOLOGY IN MATHS Year 11 TI-89 User guide

CAMBRIDGE TECHNOLOGY IN MATHS Year 11 TI-89 User guide Year 11 TI-89 User guide Page 1 of 17 CAMBRIDGE TECHNOLOGY IN MATHS Year 11 TI-89 User guide CONTENTS Getting started 2 Linear equations and graphs 3 Statistics 5 Sequences 11 Business and related mathematics

More information

We will load all available matrix functions at once with the Maple command with(linalg).

We will load all available matrix functions at once with the Maple command with(linalg). Chapter 7 A Least Squares Filter This Maple session is about matrices and how Maple can be made to employ matrices for attacking practical problems. There are a large number of matrix functions known to

More information

A Quick Tutorial on MATLAB. Zeeshan Ali

A Quick Tutorial on MATLAB. Zeeshan Ali A Quick Tutorial on MATLAB Zeeshan Ali MATLAB MATLAB is a software package for doing numerical computation. It was originally designed for solving linear algebra type problems using matrices. It's name

More information

Course Layout. Go to https://www.license.boun.edu.tr, follow instr. Accessible within campus (only for the first download)

Course Layout. Go to https://www.license.boun.edu.tr, follow instr. Accessible within campus (only for the first download) Course Layout Lectures 1: Variables, Scripts and Operations 2: Visualization and Programming 3: Solving Equations, Fitting 4: Images, Animations, Advanced Methods 5: Optional: Symbolic Math, Simulink Course

More information

AMATH 352: MATLAB Tutorial written by Peter Blossey Department of Applied Mathematics University of Washington Seattle, WA

AMATH 352: MATLAB Tutorial written by Peter Blossey Department of Applied Mathematics University of Washington Seattle, WA AMATH 352: MATLAB Tutorial written by Peter Blossey Department of Applied Mathematics University of Washington Seattle, WA MATLAB (short for MATrix LABoratory) is a very useful piece of software for numerical

More information

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors.

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors. Physics 326G Winter 2008 Class 2 In this class you will learn how to define and work with arrays or vectors. Matlab is designed to work with arrays. An array is a list of numbers (or other things) arranged

More information

MATLAB BEGINNER S GUIDE

MATLAB BEGINNER S GUIDE MATLAB BEGINNER S GUIDE About MATLAB MATLAB is an interactive software which has been used recently in various areas of engineering and scientific applications. It is not a computer language in the normal

More information

MAT 343 Laboratory 1 Matrix and Vector Computations in MATLAB

MAT 343 Laboratory 1 Matrix and Vector Computations in MATLAB MAT 343 Laboratory 1 Matrix and Vector Computations in MATLAB In this laboratory session we will learn how to 1. Create matrices and vectors. 2. Manipulate matrices and create matrices of special types

More information

Matrices for the TI-73

Matrices for the TI-73 TI Matrices for the TI-73 Getting Started Start here How To Find Installation Instructions Move Between Matrix Application Screens View and Edit a Matrix Use Matrices with Expressions Display and Copy

More information

YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM

YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM TOPIC 1 INTRODUCING SOME MATHEMATICS SOFTWARE (Matlab, Maple and Mathematica) This topic provides

More information

Introduction to MATLAB. Simon O Keefe Non-Standard Computation Group

Introduction to MATLAB. Simon O Keefe Non-Standard Computation Group Introduction to MATLAB Simon O Keefe Non-Standard Computation Group sok@cs.york.ac.uk Content n An introduction to MATLAB n The MATLAB interfaces n Variables, vectors and matrices n Using operators n Using

More information

Maxima CAS presentation Chelton Evans

Maxima CAS presentation Chelton Evans Maxima CAS presentation 2015-12-01 Chelton Evans Abstract Maxima is a popular copyleft CAS (Computer Algebra System) which can be used for both symbolic and numerical calculation. Chelton Evans will present

More information

TI-89 Calculator Workshop #1 The Basics

TI-89 Calculator Workshop #1 The Basics page 1 TI-89 Calculator Workshop #1 The Basics After completing this workshop, students will be able to: 1. find, understand, and manipulate keys on the calculator keyboard 2. perform basic computations

More information

MATLAB Project: Getting Started with MATLAB

MATLAB Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands for reference later MATLAB functions used: [ ] : ; + - * ^, size, help, format, eye, zeros, ones, diag, rand, round, cos, sin,

More information

SMS 3515: Scientific Computing Lecture 1: Introduction to Matlab 2014

SMS 3515: Scientific Computing Lecture 1: Introduction to Matlab 2014 SMS 3515: Scientific Computing Lecture 1: Introduction to Matlab 2014 Instructor: Nurul Farahain Mohammad 1 It s all about MATLAB What is MATLAB? MATLAB is a mathematical and graphical software package

More information

Computational Foundations of Cognitive Science. Inverse. Inverse. Inverse Determinant

Computational Foundations of Cognitive Science. Inverse. Inverse. Inverse Determinant Computational Foundations of Cognitive Science Lecture 14: s and in Matlab; Plotting and Graphics Frank Keller School of Informatics University of Edinburgh keller@inf.ed.ac.uk February 23, 21 1 2 3 Reading:

More information

February 01, Matrix Row Operations 2016 ink.notebook. 6.6 Matrix Row Operations. Page 49 Page Row operations

February 01, Matrix Row Operations 2016 ink.notebook. 6.6 Matrix Row Operations. Page 49 Page Row operations 6.6 Matrix Row Operations 2016 ink.notebook Page 49 Page 50 6.6 Row operations (Solve Systems with Matrices) Lesson Objectives Page 51 Standards Lesson Notes Page 52 6.6 Matrix Row Operations Press the

More information