Matlab Notes for Student Manual

Size: px
Start display at page:

Download "Matlab Notes for Student Manual"

Transcription

1 Matlab Notes for Student Manual What is Matlab? - Stands for Matrix Laboratory - Used for programming, 2D & 3D graphing, data analysis, and matrix manipulation There are two primary windows in Matlab, the Command Window and the Edit Window: - Command Window: This window can be used to type in commands and obtain immediate results. The output for Matlab will appear in this screen. - Edit Window: Use this window to create m-files. M-files are used to create programs. To access this window, click on: File > New > m-file Accessing Help - For general help, either type helpwin in the command screen, or click on Help > Help Window in either the command window or the edit window. If you know the name of the command that you need help with, type help FunctionName in the Command Window. Ex: typing» help cos in the command window will produce the following output: COS Cosine. COS(X) is the cosine of the elements of X. - Another source of help in Matlab is under Help > Examples and Demos. Here you will find demonstrations of how to perform various commands. - In the Lecture Support and Lab Support sections in WebCT, you will also find additional help material. Script Files vs Functions A Matlab script file is a text file that contains a sequence of Matlab commands. Using a script file is equivalent to typing in a series of commands at the Matlab command prompt, except that you don t need to type the commands each time you wish to use them. A script file can only execute commands and cannot accept input. Therefore, any variables/values that you want to use must be declared as part of the script. Running a script m-file - In order to run an m-file, save it, then click on Tools > Run. - If you are using a version of Matlab older than Matlab 6, you might have to change the file path in order to run an m-file. In the Editor window, click on View

2 > Path Browser. Then, click on Browse and choose the directory where your saved m-file is stored. Ex: write a script file that will find the difference between two numbers: Number1 = 10; Number2 = 3; Difference = Number1 - Number2 will produce the following output in the command window: Difference = 7 In order to change the values used in a script file, you need to change the designated variables. A Matlab function is actually a sub program that can accept input. You are essentially creating a file that is called in the same manner as a predefined function such as sin(x), or mean(x). A function must begin with a statement such as this: where: function thisfunc(arg1, arg2) the name of the function, thisfunc, must be the same as the saved m-file name, and will be used to call upon the function. if there are any arguments to the function, they appear within parentheses after the function name. the word function indicates that this is a function A function can be called from another script file or function, however, for our purposes, typing in the function name and entering values at the command window will be sufficient. Be sure that, as with script files, the correct file path is set, and that your function has been saved before running it. Ex: create a function that takes in 3 values, and finds their sum: function findsum(number1, Number2, Number3) TheSum = Number1 + Number2 + Number3 Now, typing» findsum(10, 32, 4) at the command window will produce the following result:

3 TheSum = 46 The advantage to using a function for this type of problem is that the numbers entered can vary each time you call the function. However, remember that the number of arguments in the calling statement (in the command window) has to be the same as the number of arguments in the function m-file. Initializing an m-file - Before you begin an m-file, you should initialize it to be sure that all of the variables are cleared etc using the following three commands. clear all; % resets/removes all previous variables close all; % closes any previously opened windows for figures and % graphs clc % clears any output that was in the command window Commenting - Use the % operator (%) before any line that you wish to comment out. - Any commented text is ignored when Matlab runs an m-file. - Use comments to clarify code and describe what is occurring. - Commented code will appear in green. The Semicolon (;) - Follows commands or scalar/vector/matrix assignments that you don t want printed to the screen. Ex: Number = 5; %The scalar Number is assigned the value 5, but nothing is % displayed Number = 5 %Number is assigned the value 5, and Number = 5 is displayed % in the command window sum(avector); %The sum of the elements in AVector are calculated, but % nothing is displayed sum(avector) %The sum of the elements in AVectore are calculated, and % the sum will be displayed in the command window Displaying Values in the Command Window - If you are displaying values stored in variables, you can simply omit the semicolon at the end of the statement in the Edit Window. - If you re displaying text: disp(x) - X can be text or a variable or a command. - If x is text, then the desired text should be enclosed by single quotes Ex: disp( It tastes like burning ) % It tastes like burning is % displayed in the command window disp(avariable) % the value stored in AVariable will be displayed in

4 % the command window disp(max(avector) %the largest value in AVector will be displayed in %the command window - Don t forget to omit the ; at the end of the disp statement so that the result of the command can be output. - You can change the length of the decimal places that are displayed using format long or format short format long will set the number format for long decimals and format short will set the numbers displayed for short decimals. Initializing/Assigning Variables (Scalars) - All Scalar/Vector/Matrix assignments are made in the Edit Window - Only numeric values can be assigned to variables - To assign a value to a scalar variable, type in the variable name, and equal sign, then the value that you wish to assign to the variable: ANumber = 18; The previous command assigns the value 18 to the scalar ANumber. Now, ANumber can be used in commands and expressions instead of the value 18. Ex: Number = 5; % Assigns the value 5 to the scalar Number disp(number) % Displays the value 5 on the screen Number = Number + 3 % Takes the value stored in Number (5), adds 3, % then reassigns the new value to Number (8) and % displays the result in the command window. Creating/Initializing A Vector or a Matrix There are many vector and matrix manipulation commands in Matlab, and they can also be extensively used in data analysis. Vectors When declaring vectors, use the semicolon to separate each element in the vector: AVector = [Value1; Value2; Value3; Value4; ValueN]; Ex: StudentMarks = [89;96;63;74;85] will produce: in the command window. Matrices - separate the rows of the matrix with a semicolon. AMatrix = [Value1, Value2, Value3; Value4, Value5, Value6];

5 Ex: StudentMarks = [89, 96, 63; 74, 85, 32] will produce: in the command window - Another way to initialize matrices is to use new lines instead of semicolons to designate a new row in the matrix. This can be advantageous as it lets you visualize how the matrix will be displayed: StudentMarks = [89, 96, 63 74, 85, 32] this will have the same output effect as using semicolons to change the current row. - Matrices and Vectors can be any size, although a vector can only have one column or one row. - If you don t use a semicolon after a vector/matrix declaration, the matrix will be displayed in the command window. Scalar Operations - Basic mathematical operations work on scalars in Matlab. + - * / - these operators can be used on numbers, or scalar variables. Ex: Number1 = 8; Number2 = 2; Number3 = Number1*3 Number4 = (Number1 - Number2) * Number3 - brackets ( ) and order or operations apply in all of these types of calculation Trigonometric Functions sin(x) cos(x) tan(x) - these three commands return the sin/cos/tan of an angle (x) asin(x) acos(x) atan(x)

6 - these three commands return the angle that corresponds to the sin/cos/tan given(x) - Angles need to be given in radians for the formulas to work. - to convert from degrees to radians: AngleInDegrees * pi/180; Data Analysis Tools - all of the following data analysis commands are used with vectors or matrices. Again, the semicolon has the same effect as before for displaying values. max(x) and min(x): These commands return (respectively) the largest or smallest values in a given vector x. If x is a matrix, then max(x) and min(x) will find the largest or smallest value in each column of the matrix x, and will output a row vector containing the values. Temperatures = [29;22;25;31;38;25;26;27]; min(temperatures) will output the smallest value in Temperatures 22 mean(x) and median(x): These commands return (respectively) the average value or the median value in a given vector x or matrix x. If x is a matrix, then each of these commands will output a row vector containing the mean or median value from each column in the matrix. Rainfall = [250, 123,164;198,220,172;198,231,182] Rainfall = median(rainfall) will output the median from each column of the matrix Rainfall: sum(x) and product(x): These commands act in the same way as the previous four, except they calculate the sum or the product of a vector x or of each of the columns of a matrix x, output in a row vector. sort(x): this command sorts the values of the given vector x in ascending order. If x is a matrix, then this command will sort each column of the matrix independently. Temperatures = [29;22;25;31;38;25;26;27]; sort(temperatures) will output the sorted vector Temperatures:

7 std(x): calculates the standard deviation of a the values in a vector or the columns of a matrix. Acts in the same way as all of the other data analysis commands. randn(n) and randn(m,n): Develops a set of random Gaussian values. randn(n) will return a n*n matrix, while randn(m,n) will return a m*n matrix. If you wish to return a single set of data (a vector) set m or n to 1 in the randn(m,n) command. Ex: GaussianNumbers = randn(30,1); will produce a vector that contains 30 random gaussian values. All of the values are stored in the vector GaussianNumbers. GaussianNumbers can then be used as an ordinary vector. - A similar command, rand(n) or rand(m,n) acts the same way as randn, but does develop a Gaussian set of data. - Each of these commands will produce values between 0 and 1, and randn automatically sets the standard deviation to 1 and the mean to 0. The mean can be altered however: Numbers = randn(45,2) + 5; will produce a 45 * 2 matrix that contains a set of gaussian data, with a standard deviation of 1 and a mean of 5 - Every set of regular random numbers is never truly random however. You can specify the seed of random numbers that you want the computer to use. Every seed will produce its own set of numbers, and can be changed using the rand( seed, n); command, where n is the number of the seed that you wish to use. - with Gaussian random numbers, you don t need to specify the seed, as the data will fluctuate slightly every time the program is run. mod(x,y): This command will return a whole number remainder when the value in x is divided by y. This can be very useful when determining if a number is even or odd. To determine if a number x is even, enter a y value of 2 into the mod command. The result should be 0. If the number is odd, then the result should be 1. This command operates in the same manner as the rem(x,y) command. Ex: mod(38, 2) mod(13, 2)

8 Solution: ans = ans = 0 1 Graphing plot (x,y) - this will plot an x vs y graph, where x and y will normally be vectors or matrices. - plot(vector1, Vector2) -> Vector1 has the x-axis values and Vector2 has the y-axis values. - You can also plot more than one set of data on the same graph: plot(x1, y1, x1, y2) this is very useful when comparing graphs. Ex: Vector1 = [1;2;3;4]; Vector2 = [2;9;4;12]; Vector3 = [10;3;8;0]; plot(vector1, Vector2, Vector1, Vector3) will produce the following graph: -You could also set y to a matrix. If the command plot(vector1, AMatrix) was performed, each column of the matrix would act as a separate set of data and multiple plots will be created on the same graph with the same effect as plotting more than one vector on the same graph. -To place labels on a graph, enter the following in your m-file: xlabel( x-label name ), ylabel( y-label name )

9 -To place a title on a graph: title( Enter Title Here ) hist(x, n) -this will create a histogram. Similar to Excel, this command will create a histogram with data divided into bins (n). x will be either a vector containing data, or a scalar that contains random numbers, particularly Gaussian random numbers. Ex: -hist(gaussiandata, 30) will plot a histogram using the data stored in GaussianData, and will divide the data into 30 different bins. You can increase the accuracy and resolution of your graph by increasing the number of different data bins that the values can be placed into. The Colon Operator (:) -can be used to create vectors and subsets of matrices to create regularly spaced vectors: -j:k [j, j+1, j+2, k] -j:k is empty if j > k -j:i:k [j, j+i, j+2i, j+3i, k] -j:i:k is empty if i>0 and j>k or if i<0 and j<k Ex: x = 2:7; y = 2:3:14; R=[4,6,5 12,6,7 1,3,11 8,9,3 13,6,2]; disp(x) disp(y) will produce as ouput will produce as output selecting subsets of vectors and matrices -you can refer to the elements of an array or vector by using brackets and colons. -Accessing an element is easy, as you only need to specify and element: AVector (Element) Ex: AVector(17) refers to the 17 th element in the vector AVector -When accessing the elements of an array, you have to specify a row and a column: AMatrix (row, column) where the first entry in the brackets will refer the row and the second entry will refer to the column of the matrix. Ex: R(2,3) refers to the element at the intersection of the 2 nd row and the 3 rd column of the matrix R (above), which would return a value of 7

10 R(4, :) refers to the fourth row of R R(:, 2) refers to the 2 nd column of R And, the colon operator can also be used as it was when creating evenly spaced vectors: Ex: R(1:3, 2:3) will create a subset of the matrix R that goes from the first to the third row, only with the 2 nd to fifth column: You can also specify the amount to go up or down by with the colon operator, as before. Ex: R(1:2:5, :) will produce a subset of R, that starts at the first row of R and goes to the 5 th row of R, only in increments of 2 however. The 1 st, 3 rd, and 5 th rows of R will then be displayed R(:, :) will return the same thing as R - R(:) will return all of the elements in R seen as a single column Practice Problems Write out the contents of each of the following matrices. Refer to the matrix R R=[4,6,5 where necessary. The answers can be verified in Matlab. 12,6,7 1,3,11 A = R(:,1) Q = [1:3;4:6] 8,9,3 T = -0.5:0.1:0.5 13,6,2]; N = R(3:5,1:2) X = R(2:4,1:2:3) Solutions A = Q = N = X = T =

11 \\\ Selection and Looping Relational and Logical Operators: - these operators are very useful when comparing and choosing values in if statements and in loops. - They are used to determine if an expression will evaluate to true or false. If an expression evaluates to true, Matlab will return 1 in the command window. Otherwise, the expression evaluated to false, and Matlab will return a 0. < less than <= less than or equal to > greater than >= greater than or equal to == equal to ~= not equal to ~ not & and or if statements - if statements are logical expressions. If the logical expression is true, then the statements between the if statement and the end statement are executed. If the logical expression is false, then the program will skip the actions inside of the if statement and jump to the statement immediately after the end statement. - if expression statements end -you can have any number of commands in the statements section, and semicolon rules still apply to these commands. Ex: If the given number is greater or equal to 50, then increase the counter by one and display the number that is being tested: if Number >= 50 count = count + 1;

12 disp(number) end while loop - used to repeat a set of commands as long as the specified condition/ expression remains true. while expression statements end - The loop tests the condition before the actions are performed. Therefore, if the expression evaluates to false, no actions are performed. - The end command signifies the end of the loop, which is where the program will go back to the beginning of the loop to re-evaluate the expression. - You can have any number of commands inside the while loop. Ex: Find the smallest odd number whose cube is greater than clear all; close all; clc %The previous 3 commands will initialize the program Number = 1; %Sets the first odd number to be tested to 1 CubedNumber = Number*Number*Number; %Calculates the first cubed value, as the while loop is a pre-test %loop and needs a value to test before you can enter the loop while (CubedNumber < 4500) %this expression will test the value of CubedNumber each time the %program executes the loop, until the value of CubedNumber is > 3000 Number = Number + 2; %Increases the value of Number by 2, as you are only testing odd %numbers CubedNumber = Number*Number*Number; %Recalculates the value of CubedNumber, as you need to test the value %again at the beginning of the loop to determine if you will make %another pass. end %From this point, the program will go to the beginning of the loop and %test the value of CubedNumber to see whether or not it is necessary to %do the loop again. disp('the Smallest odd number whose cube is greater than 4500 is:')

13 Number %displays a string, and the smalledst odd number whose cube is greater %than disp('its cube is:') disp(cubednumber) %displays another string, as well as the cubed value that was tested. Here is the output to the program that is displayed in the command window of Matlab. The Smallet odd number whose cube is greater than 4500 is: Number = 17 Its cube is: 4913 Vector/Matrix Operations Vector Addition/Subtraction: In Matlab, vector addition and subtraction is performed with the same commands as scalar addition/subtraction. The rules for vector addition remain, as the vectors will be added/subtracted element by element. The vectors must have the same dimensions, or Matlab will produce an error message. Ex: Add the following vectors using Matlab: y=[3;4;2;6]; x=[-2;6;9;1]; z=y+x will produce the following output: z = Dot Product: The dot product operator will calculate the dot product of 2 vectors that have the same number of elements. There are 2 commands that can calculate the dot product of 2 vectors m and n ( ): 1) sum(a.*b) and 2) dot(a,b)

14 Ex: Given the vectors, calculate : d=[5;3;-3]; e=[4;-4;1]; f=dot(d,e) This will produce the following output: f = 5 Cross Product: The cross product operator will calculate the cross product of 2 vectors that each contains 3 elements. Use the cross(a, B) command, where A and B are vectors ( ). Ex: Using the vectors d and e from above, calculate. d=[5;3;-3]; e=[4;-4;1]; z=cross(e,d) will produce the following output: z = Scalar Vector Multiplication: Each element of the vector is multiplied by the scalar: Ex: Given the vector z =, and the scalar, calculate o = a*z will produce: o = z = [6;7;4;5;2;3]; a = 1.61;

15 Matrix-Matrix Addition/Subtraction: Uses the + operator and works as before, where each matrix must have the same size. Ex: a=[1,2,3;4,5,6;7,8,9]; b=[2,3,4;5,6,7;8,9,10]; c=a+b will produce: c = Matrix Transpose: This command uses the operator at the end of a matrix name to transpose the matrix. You can display the transpose of a matrix, assign it to another variable, or use the transpose directly in matrix operations. Ex: J=[1,3,5 7,9,11]; Q=J J The two commands to display the transposed matrix will produce the same output: Matrix-Matrix Multiplication: This performs the multiplication of two matrices, according to the normal rules for multiplying matrices. If the inner dimensions of the matrices must be equal or Matlab will produce an error message. When multiplying 2 matrices in Matlab, use the * operator, as you would to multiply 2 scalars together. Ex: Multiply and together according to t=m*c m=[5,3,-3;4,-4,1]; c=[0,-2;4,5; 2,-3]; t=m*c will display the resulting matrix t: t = 6 14

16 Solutions to systems of linear equations: - Using Matlab, you can solve systems of linear equations. Simply take a given matrix, and enter the matrix A, as well as the vector b into Matlab. To find the solution x, use the left division operator: \. Ex: The following system of three equations in three unknowns This produces, the vector and the unknown Now, to solve the equation for x, use the \ operator in the equation. A=[3,2,-1;-1,3,2;1,-1,-1]; b=[10;5;-1]; x=a\b This will produce: x = as output If a system of equations does not have a unique solution, an error message will be displayed or Matlab will produce a matrix whose elements are inf.

17 1. Add or subtract the following vectors according to the given expression: a) b) c) 2. Using the vectors j, k, and l from the previous section, calculate the following dot products using Matlab: a) b) c) Use the following matrices for questions 3 and 4: 3. Perform the following matrix operations in Matlab: a) b) c) d) e) f) g) 4. Transpose the following matrices: a) b) c) d) 5. Solve the following systems of equations using Matlab

18 a) b) c) d) e) The above can be described by three equations with three unknowns. Using KVL and Ohm s law, we have: Loop #1: Loop #2:

19 Loop #3: Solutions: 1. a) b) c) 2. a) 20 b) 17 c) 4 3. a) b) c) Can t be done. The dimensions don t correspond d) Can t be done. The dimensions don t correspond e) f) g) 4. a) b) c)

20 d) 5. a) b) There isn t a unique solution c) d) e) MATLAB solution:» A = [12-2 0; ; 0-6 7];» b = [5; 0; 0];» x = A\b x =

MATLAB Workshop 3 - Vectors in MATLAB

MATLAB Workshop 3 - Vectors in MATLAB MATLAB: Workshop - Vectors in MATLAB page 1 MATLAB Workshop - Vectors in MATLAB Objectives: Learn about vector properties in MATLAB, methods to create row and column vectors, mathematical functions with

More information

AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables

AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables AMATH 352 Lecture 3 MATLAB Tutorial MATLAB (short for MATrix LABoratory) is a very useful piece of software for numerical analysis. It provides an environment for computation and the visualization. Learning

More information

A few useful MATLAB functions

A few useful MATLAB functions A few useful MATLAB functions Renato Feres - Math 350 Fall 2012 1 Uniform random numbers The Matlab command rand is based on a popular deterministic algorithm called multiplicative congruential method.

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Social Science Research Lab American University, Washington, D.C. Web. www.american.edu/provost/ctrl/pclabs.cfm Tel. x3862 Email. SSRL@American.edu Course Objective This course provides

More information

u = [ 2 4 5] has one row with three components (a 3 v = [2 4 5] has three rows separated by semicolons (a 3 w = 2:5 generates the row vector w = [ 2 3

u = [ 2 4 5] has one row with three components (a 3 v = [2 4 5] has three rows separated by semicolons (a 3 w = 2:5 generates the row vector w = [ 2 3 MATLAB Tutorial You need a small numb e r of basic commands to start using MATLAB. This short tutorial describes those fundamental commands. You need to create vectors and matrices, to change them, and

More information

Analysis of System Performance IN2072 Chapter M Matlab Tutorial

Analysis of System Performance IN2072 Chapter M Matlab Tutorial Chair for Network Architectures and Services Prof. Carle Department of Computer Science TU München Analysis of System Performance IN2072 Chapter M Matlab Tutorial Dr. Alexander Klein Prof. Dr.-Ing. Georg

More information

Beginner s Matlab Tutorial

Beginner s Matlab Tutorial Christopher Lum lum@u.washington.edu Introduction Beginner s Matlab Tutorial This document is designed to act as a tutorial for an individual who has had no prior experience with Matlab. For any questions

More information

2+2 Just type and press enter and the answer comes up ans = 4

2+2 Just type and press enter and the answer comes up ans = 4 Demonstration Red text = commands entered in the command window Black text = Matlab responses Blue text = comments 2+2 Just type and press enter and the answer comes up 4 sin(4)^2.5728 The elementary functions

More information

Financial Econometrics MFE MATLAB Introduction. Kevin Sheppard University of Oxford

Financial Econometrics MFE MATLAB Introduction. Kevin Sheppard University of Oxford Financial Econometrics MFE MATLAB Introduction Kevin Sheppard University of Oxford October 21, 2013 2007-2013 Kevin Sheppard 2 Contents Introduction i 1 Getting Started 1 2 Basic Input and Operators 5

More information

(!' ) "' # "*# "!(!' +,

(!' ) ' # *# !(!' +, MATLAB is a numeric computation software for engineering and scientific calculations. The name MATLAB stands for MATRIX LABORATORY. MATLAB is primarily a tool for matrix computations. It was developed

More information

MATLAB Basics MATLAB numbers and numeric formats

MATLAB Basics MATLAB numbers and numeric formats MATLAB Basics MATLAB numbers and numeric formats All numerical variables are stored in MATLAB in double precision floating-point form. (In fact it is possible to force some variables to be of other types

More information

How To Use Matlab

How To Use Matlab INTRODUCTION TO MATLAB FOR ENGINEERING STUDENTS David Houcque Northwestern University (version 1.2, August 2005) Contents 1 Tutorial lessons 1 1 1.1 Introduction.................................... 1 1.2

More information

Using SPSS, Chapter 2: Descriptive Statistics

Using SPSS, Chapter 2: Descriptive Statistics 1 Using SPSS, Chapter 2: Descriptive Statistics Chapters 2.1 & 2.2 Descriptive Statistics 2 Mean, Standard Deviation, Variance, Range, Minimum, Maximum 2 Mean, Median, Mode, Standard Deviation, Variance,

More information

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B KITCHENS The equation 1 Lines in two-dimensional space (1) 2x y = 3 describes a line in two-dimensional space The coefficients of x and y in the equation

More information

CD-ROM Appendix E: Matlab

CD-ROM Appendix E: Matlab CD-ROM Appendix E: Matlab Susan A. Fugett Matlab version 7 or 6.5 is a very powerful tool useful for many kinds of mathematical tasks. For the purposes of this text, however, Matlab 7 or 6.5 will be used

More information

MATLAB Functions. function [Out_1,Out_2,,Out_N] = function_name(in_1,in_2,,in_m)

MATLAB Functions. function [Out_1,Out_2,,Out_N] = function_name(in_1,in_2,,in_m) MATLAB Functions What is a MATLAB function? A MATLAB function is a MATLAB program that performs a sequence of operations specified in a text file (called an m-file because it must be saved with a file

More information

How long is the vector? >> length(x) >> d=size(x) % What are the entries in the matrix d?

How long is the vector? >> length(x) >> d=size(x) % What are the entries in the matrix d? MATLAB : A TUTORIAL 1. Creating vectors..................................... 2 2. Evaluating functions y = f(x), manipulating vectors. 4 3. Plotting............................................ 5 4. Miscellaneous

More information

MATLAB Programming. Problem 1: Sequential

MATLAB Programming. Problem 1: Sequential Division of Engineering Fundamentals, Copyright 1999 by J.C. Malzahn Kampe 1 / 21 MATLAB Programming When we use the phrase computer solution, it should be understood that a computer will only follow directions;

More information

Lecture 2 Mathcad Basics

Lecture 2 Mathcad Basics Operators Lecture 2 Mathcad Basics + Addition, - Subtraction, * Multiplication, / Division, ^ Power ( ) Specify evaluation order Order of Operations ( ) ^ highest level, first priority * / next priority

More information

Signal Processing First Lab 01: Introduction to MATLAB. 3. Learn a little about advanced programming techniques for MATLAB, i.e., vectorization.

Signal Processing First Lab 01: Introduction to MATLAB. 3. Learn a little about advanced programming techniques for MATLAB, i.e., vectorization. Signal Processing First Lab 01: Introduction to MATLAB Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in the Pre-Lab section

More information

(!' ) "' # "*# "!(!' +,

(!' ) ' # *# !(!' +, Normally, when single line commands are entered, MATLAB processes the commands immediately and displays the results. MATLAB is also capable of processing a sequence of commands that are stored in files

More information

Final Exam Review: VBA

Final Exam Review: VBA Engineering Fundamentals ENG1100 - Session 14B Final Exam Review: VBA 1 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi Final Programming Exam Topics Flowcharts Assigning Variables

More information

5: Magnitude 6: Convert to Polar 7: Convert to Rectangular

5: Magnitude 6: Convert to Polar 7: Convert to Rectangular TI-NSPIRE CALCULATOR MENUS 1: Tools > 1: Define 2: Recall Definition --------------- 3: Delete Variable 4: Clear a-z 5: Clear History --------------- 6: Insert Comment 2: Number > 1: Convert to Decimal

More information

Linear Algebra Notes for Marsden and Tromba Vector Calculus

Linear Algebra Notes for Marsden and Tromba Vector Calculus Linear Algebra Notes for Marsden and Tromba Vector Calculus n-dimensional Euclidean Space and Matrices Definition of n space As was learned in Math b, a point in Euclidean three space can be thought of

More information

Simulation Tools. Python for MATLAB Users I. Claus Führer. Automn 2009. Claus Führer Simulation Tools Automn 2009 1 / 65

Simulation Tools. Python for MATLAB Users I. Claus Führer. Automn 2009. Claus Führer Simulation Tools Automn 2009 1 / 65 Simulation Tools Python for MATLAB Users I Claus Führer Automn 2009 Claus Führer Simulation Tools Automn 2009 1 / 65 1 Preface 2 Python vs Other Languages 3 Examples and Demo 4 Python Basics Basic Operations

More information

Summary of important mathematical operations and formulas (from first tutorial):

Summary of important mathematical operations and formulas (from first tutorial): EXCEL Intermediate Tutorial Summary of important mathematical operations and formulas (from first tutorial): Operation Key Addition + Subtraction - Multiplication * Division / Exponential ^ To enter a

More information

Using Microsoft Excel Built-in Functions and Matrix Operations. EGN 1006 Introduction to the Engineering Profession

Using Microsoft Excel Built-in Functions and Matrix Operations. EGN 1006 Introduction to the Engineering Profession Using Microsoft Ecel Built-in Functions and Matri Operations EGN 006 Introduction to the Engineering Profession Ecel Embedded Functions Ecel has a wide variety of Built-in Functions: Mathematical Financial

More information

MatLab Basics. Now, press return to see what Matlab has stored as your variable x. You should see:

MatLab Basics. Now, press return to see what Matlab has stored as your variable x. You should see: MatLab Basics MatLab was designed as a Matrix Laboratory, so all operations are assumed to be done on matrices unless you specifically state otherwise. (In this context, numbers (scalars) are simply regarded

More information

Lecture 2 Matrix Operations

Lecture 2 Matrix Operations Lecture 2 Matrix Operations transpose, sum & difference, scalar multiplication matrix multiplication, matrix-vector product matrix inverse 2 1 Matrix transpose transpose of m n matrix A, denoted A T or

More information

Linear Algebra and TI 89

Linear Algebra and TI 89 Linear Algebra and TI 89 Abdul Hassen and Jay Schiffman This short manual is a quick guide to the use of TI89 for Linear Algebra. We do this in two sections. In the first section, we will go over the editing

More information

FIRST STEPS WITH SCILAB

FIRST STEPS WITH SCILAB powered by FIRST STEPS WITH SCILAB The purpose of this tutorial is to get started using Scilab, by discovering the environment, the main features and some useful commands. Level This work is licensed under

More information

Mathematics Pre-Test Sample Questions A. { 11, 7} B. { 7,0,7} C. { 7, 7} D. { 11, 11}

Mathematics Pre-Test Sample Questions A. { 11, 7} B. { 7,0,7} C. { 7, 7} D. { 11, 11} Mathematics Pre-Test Sample Questions 1. Which of the following sets is closed under division? I. {½, 1,, 4} II. {-1, 1} III. {-1, 0, 1} A. I only B. II only C. III only D. I and II. Which of the following

More information

Appendix: Tutorial Introduction to MATLAB

Appendix: Tutorial Introduction to MATLAB Resampling Stats in MATLAB 1 This document is an excerpt from Resampling Stats in MATLAB Daniel T. Kaplan Copyright (c) 1999 by Daniel T. Kaplan, All Rights Reserved This document differs from the published

More information

How To Understand And Solve A Linear Programming Problem

How To Understand And Solve A Linear Programming Problem At the end of the lesson, you should be able to: Chapter 2: Systems of Linear Equations and Matrices: 2.1: Solutions of Linear Systems by the Echelon Method Define linear systems, unique solution, inconsistent,

More information

Excel supplement: Chapter 7 Matrix and vector algebra

Excel supplement: Chapter 7 Matrix and vector algebra Excel supplement: Chapter 7 atrix and vector algebra any models in economics lead to large systems of linear equations. These problems are particularly suited for computers. The main purpose of this chapter

More information

Basic Concepts in Matlab

Basic Concepts in Matlab Basic Concepts in Matlab Michael G. Kay Fitts Dept. of Industrial and Systems Engineering North Carolina State University Raleigh, NC 769-7906, USA kay@ncsu.edu September 00 Contents. The Matlab Environment.

More information

a(1) = first.entry of a

a(1) = first.entry of a Lecture 2 vectors and matrices ROW VECTORS Enter the following in SciLab: [1,2,3] scilab notation for row vectors [8]==8 a=[2 3 4] separate entries with spaces or commas b=[10,10,10] a+b, b-a add, subtract

More information

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89 by Joseph Collison Copyright 2000 by Joseph Collison All rights reserved Reproduction or translation of any part of this work beyond that permitted by Sections

More information

Sequences. A sequence is a list of numbers, or a pattern, which obeys a rule.

Sequences. A sequence is a list of numbers, or a pattern, which obeys a rule. Sequences A sequence is a list of numbers, or a pattern, which obeys a rule. Each number in a sequence is called a term. ie the fourth term of the sequence 2, 4, 6, 8, 10, 12... is 8, because it is the

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS Systems of Equations and Matrices Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a

More information

Using Casio Graphics Calculators

Using Casio Graphics Calculators Using Casio Graphics Calculators (Some of this document is based on papers prepared by Donald Stover in January 2004.) This document summarizes calculation and programming operations with many contemporary

More information

13 MATH FACTS 101. 2 a = 1. 7. The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

13 MATH FACTS 101. 2 a = 1. 7. The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions. 3 MATH FACTS 0 3 MATH FACTS 3. Vectors 3.. Definition We use the overhead arrow to denote a column vector, i.e., a linear segment with a direction. For example, in three-space, we write a vector in terms

More information

SOLVING TRIGONOMETRIC EQUATIONS

SOLVING TRIGONOMETRIC EQUATIONS Mathematics Revision Guides Solving Trigonometric Equations Page 1 of 17 M.K. HOME TUITION Mathematics Revision Guides Level: AS / A Level AQA : C2 Edexcel: C2 OCR: C2 OCR MEI: C2 SOLVING TRIGONOMETRIC

More information

VB.NET Programming Fundamentals

VB.NET Programming Fundamentals Chapter 3 Objectives Programming Fundamentals In this chapter, you will: Learn about the programming language Write a module definition Use variables and data types Compute with Write decision-making statements

More information

Trigonometric Functions and Triangles

Trigonometric Functions and Triangles Trigonometric Functions and Triangles Dr. Philippe B. Laval Kennesaw STate University August 27, 2010 Abstract This handout defines the trigonometric function of angles and discusses the relationship between

More information

Excel Basics By Tom Peters & Laura Spielman

Excel Basics By Tom Peters & Laura Spielman Excel Basics By Tom Peters & Laura Spielman What is Excel? Microsoft Excel is a software program with spreadsheet format enabling the user to organize raw data, make tables and charts, graph and model

More information

Beginning Matlab Exercises

Beginning Matlab Exercises Beginning Matlab Exercises R. J. Braun Department of Mathematical Sciences University of Delaware 1 Introduction This collection of exercises is inted to help you start learning Matlab. Matlab is a huge

More information

Commonly Used Excel Functions. Supplement to Excel for Budget Analysts

Commonly Used Excel Functions. Supplement to Excel for Budget Analysts Supplement to Excel for Budget Analysts Version 1.0: February 2016 Table of Contents Introduction... 4 Formulas and Functions... 4 Math and Trigonometry Functions... 5 ABS... 5 ROUND, ROUNDUP, and ROUNDDOWN...

More information

Solving Systems of Linear Equations Using Matrices

Solving Systems of Linear Equations Using Matrices Solving Systems of Linear Equations Using Matrices What is a Matrix? A matrix is a compact grid or array of numbers. It can be created from a system of equations and used to solve the system of equations.

More information

sample median Sample quartiles sample deciles sample quantiles sample percentiles Exercise 1 five number summary # Create and view a sorted

sample median Sample quartiles sample deciles sample quantiles sample percentiles Exercise 1 five number summary # Create and view a sorted Sample uartiles We have seen that the sample median of a data set {x 1, x, x,, x n }, sorted in increasing order, is a value that divides it in such a way, that exactly half (i.e., 50%) of the sample observations

More information

Curve Fitting, Loglog Plots, and Semilog Plots 1

Curve Fitting, Loglog Plots, and Semilog Plots 1 Curve Fitting, Loglog Plots, and Semilog Plots 1 In this MATLAB exercise, you will learn how to plot data and how to fit lines to your data. Suppose you are measuring the height h of a seedling as it grows.

More information

SQL Server Array Library 2010-11 László Dobos, Alexander S. Szalay

SQL Server Array Library 2010-11 László Dobos, Alexander S. Szalay SQL Server Array Library 2010-11 László Dobos, Alexander S. Szalay The Johns Hopkins University, Department of Physics and Astronomy Eötvös University, Department of Physics of Complex Systems http://voservices.net/sqlarray,

More information

Introduction to Matrices for Engineers

Introduction to Matrices for Engineers Introduction to Matrices for Engineers C.T.J. Dodson, School of Mathematics, Manchester Universit 1 What is a Matrix? A matrix is a rectangular arra of elements, usuall numbers, e.g. 1 0-8 4 0-1 1 0 11

More information

Calculator Notes for the TI-89, TI-92 Plus, and Voyage 200

Calculator Notes for the TI-89, TI-92 Plus, and Voyage 200 CHAPTER 1 Note 1A Reentry Calculator Notes for the TI-89, TI-92 Plus, and Voyage 200 If you want to do further calculation on a result you ve just found, and that result is the first number in the expression

More information

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system 1. Systems of linear equations We are interested in the solutions to systems of linear equations. A linear equation is of the form 3x 5y + 2z + w = 3. The key thing is that we don t multiply the variables

More information

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite ALGEBRA Pupils should be taught to: Generate and describe sequences As outcomes, Year 7 pupils should, for example: Use, read and write, spelling correctly: sequence, term, nth term, consecutive, rule,

More information

Lecture 1: Systems of Linear Equations

Lecture 1: Systems of Linear Equations MTH Elementary Matrix Algebra Professor Chao Huang Department of Mathematics and Statistics Wright State University Lecture 1 Systems of Linear Equations ² Systems of two linear equations with two variables

More information

18.06 Problem Set 4 Solution Due Wednesday, 11 March 2009 at 4 pm in 2-106. Total: 175 points.

18.06 Problem Set 4 Solution Due Wednesday, 11 March 2009 at 4 pm in 2-106. Total: 175 points. 806 Problem Set 4 Solution Due Wednesday, March 2009 at 4 pm in 2-06 Total: 75 points Problem : A is an m n matrix of rank r Suppose there are right-hand-sides b for which A x = b has no solution (a) What

More information

NCSS Statistical Software Principal Components Regression. In ordinary least squares, the regression coefficients are estimated using the formula ( )

NCSS Statistical Software Principal Components Regression. In ordinary least squares, the regression coefficients are estimated using the formula ( ) Chapter 340 Principal Components Regression Introduction is a technique for analyzing multiple regression data that suffer from multicollinearity. When multicollinearity occurs, least squares estimates

More information

Using Formulas, Functions, and Data Analysis Tools Excel 2010 Tutorial

Using Formulas, Functions, and Data Analysis Tools Excel 2010 Tutorial Using Formulas, Functions, and Data Analysis Tools Excel 2010 Tutorial Excel file for use with this tutorial Tutor1Data.xlsx File Location http://faculty.ung.edu/kmelton/data/tutor1data.xlsx Introduction:

More information

A linear combination is a sum of scalars times quantities. Such expressions arise quite frequently and have the form

A linear combination is a sum of scalars times quantities. Such expressions arise quite frequently and have the form Section 1.3 Matrix Products A linear combination is a sum of scalars times quantities. Such expressions arise quite frequently and have the form (scalar #1)(quantity #1) + (scalar #2)(quantity #2) +...

More information

0 Introduction to Data Analysis Using an Excel Spreadsheet

0 Introduction to Data Analysis Using an Excel Spreadsheet Experiment 0 Introduction to Data Analysis Using an Excel Spreadsheet I. Purpose The purpose of this introductory lab is to teach you a few basic things about how to use an EXCEL 2010 spreadsheet to do

More information

Perl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl

Perl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl First CGI Script and Perl Perl in a nutshell Prof. Rasley shebang line tells the operating system where the Perl interpreter is located necessary on UNIX comment line ignored by the Perl interpreter End

More information

Using Excel (Microsoft Office 2007 Version) for Graphical Analysis of Data

Using Excel (Microsoft Office 2007 Version) for Graphical Analysis of Data Using Excel (Microsoft Office 2007 Version) for Graphical Analysis of Data Introduction In several upcoming labs, a primary goal will be to determine the mathematical relationship between two variable

More information

Chapter 19. General Matrices. An n m matrix is an array. a 11 a 12 a 1m a 21 a 22 a 2m A = a n1 a n2 a nm. The matrix A has n row vectors

Chapter 19. General Matrices. An n m matrix is an array. a 11 a 12 a 1m a 21 a 22 a 2m A = a n1 a n2 a nm. The matrix A has n row vectors Chapter 9. General Matrices An n m matrix is an array a a a m a a a m... = [a ij]. a n a n a nm The matrix A has n row vectors and m column vectors row i (A) = [a i, a i,..., a im ] R m a j a j a nj col

More information

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus South Carolina College- and Career-Ready (SCCCR) Pre-Calculus Key Concepts Arithmetic with Polynomials and Rational Expressions PC.AAPR.2 PC.AAPR.3 PC.AAPR.4 PC.AAPR.5 PC.AAPR.6 PC.AAPR.7 Standards Know

More information

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes The Scalar Product 9.4 Introduction There are two kinds of multiplication involving vectors. The first is known as the scalar product or dot product. This is so-called because when the scalar product of

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS 1. SYSTEMS OF EQUATIONS AND MATRICES 1.1. Representation of a linear system. The general system of m equations in n unknowns can be written a 11 x 1 + a 12 x 2 +

More information

G563 Quantitative Paleontology. SQL databases. An introduction. Department of Geological Sciences Indiana University. (c) 2012, P.

G563 Quantitative Paleontology. SQL databases. An introduction. Department of Geological Sciences Indiana University. (c) 2012, P. SQL databases An introduction AMP: Apache, mysql, PHP This installations installs the Apache webserver, the PHP scripting language, and the mysql database on your computer: Apache: runs in the background

More information

Linear Algebra: Vectors

Linear Algebra: Vectors A Linear Algebra: Vectors A Appendix A: LINEAR ALGEBRA: VECTORS TABLE OF CONTENTS Page A Motivation A 3 A2 Vectors A 3 A2 Notational Conventions A 4 A22 Visualization A 5 A23 Special Vectors A 5 A3 Vector

More information

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations. EXCEL Tutorial: How to use EXCEL for Graphs and Calculations. Excel is powerful tool and can make your life easier if you are proficient in using it. You will need to use Excel to complete most of your

More information

Section 1: How will you be tested? This section will give you information about the different types of examination papers that are available.

Section 1: How will you be tested? This section will give you information about the different types of examination papers that are available. REVISION CHECKLIST for IGCSE Mathematics 0580 A guide for students How to use this guide This guide describes what topics and skills you need to know for your IGCSE Mathematics examination. It will help

More information

Engineering Problem Solving and Excel. EGN 1006 Introduction to Engineering

Engineering Problem Solving and Excel. EGN 1006 Introduction to Engineering Engineering Problem Solving and Excel EGN 1006 Introduction to Engineering Mathematical Solution Procedures Commonly Used in Engineering Analysis Data Analysis Techniques (Statistics) Curve Fitting techniques

More information

CSC 120: Computer Science for the Sciences (R section)

CSC 120: Computer Science for the Sciences (R section) CSC 120: Computer Science for the Sciences (R section) Radford M. Neal, University of Toronto, 2015 http://www.cs.utoronto.ca/ radford/csc120/ Week 2 Typing Stuff into R Can be Good... You can learn a

More information

www.mathsbox.org.uk ab = c a If the coefficients a,b and c are real then either α and β are real or α and β are complex conjugates

www.mathsbox.org.uk ab = c a If the coefficients a,b and c are real then either α and β are real or α and β are complex conjugates Further Pure Summary Notes. Roots of Quadratic Equations For a quadratic equation ax + bx + c = 0 with roots α and β Sum of the roots Product of roots a + b = b a ab = c a If the coefficients a,b and c

More information

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012 Binary numbers The reason humans represent numbers using decimal (the ten digits from 0,1,... 9) is that we have ten fingers. There is no other reason than that. There is nothing special otherwise about

More information

14:440:127 Introduction to Computers for Engineers. Notes for Lecture 06

14:440:127 Introduction to Computers for Engineers. Notes for Lecture 06 14:440:127 Introduction to Computers for Engineers Notes for Lecture 06 Rutgers University, Spring 2010 Instructor- Blase E. Ur 1 Loop Examples 1.1 Example- Sum Primes Let s say we wanted to sum all 1,

More information

Doing Multiple Regression with SPSS. In this case, we are interested in the Analyze options so we choose that menu. If gives us a number of choices:

Doing Multiple Regression with SPSS. In this case, we are interested in the Analyze options so we choose that menu. If gives us a number of choices: Doing Multiple Regression with SPSS Multiple Regression for Data Already in Data Editor Next we want to specify a multiple regression analysis for these data. The menu bar for SPSS offers several options:

More information

Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information.

Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information. Excel Tutorial Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information. Working with Data Entering and Formatting Data Before entering data

More information

Lab 1. The Fourier Transform

Lab 1. The Fourier Transform Lab 1. The Fourier Transform Introduction In the Communication Labs you will be given the opportunity to apply the theory learned in Communication Systems. Since this is your first time to work in the

More information

A vector is a directed line segment used to represent a vector quantity.

A vector is a directed line segment used to represent a vector quantity. Chapters and 6 Introduction to Vectors A vector quantity has direction and magnitude. There are many examples of vector quantities in the natural world, such as force, velocity, and acceleration. A vector

More information

Introduction. Chapter 1

Introduction. Chapter 1 Chapter 1 Introduction MATLAB (Matrix laboratory) is an interactive software system for numerical computations and graphics. As the name suggests, MATLAB is especially designed for matrix computations:

More information

LAYOUT OF THE KEYBOARD

LAYOUT OF THE KEYBOARD Dr. Charles Hofmann, LaSalle hofmann@lasalle.edu Dr. Roseanne Hofmann, MCCC rhofman@mc3.edu ------------------------------------------------------------------------------------------------- DISPLAY CONTRAST

More information

Microsoft Excel 2010 Part 3: Advanced Excel

Microsoft Excel 2010 Part 3: Advanced Excel CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Excel 2010 Part 3: Advanced Excel Winter 2015, Version 1.0 Table of Contents Introduction...2 Sorting Data...2 Sorting

More information

Big Ideas in Mathematics

Big Ideas in Mathematics Big Ideas in Mathematics which are important to all mathematics learning. (Adapted from the NCTM Curriculum Focal Points, 2006) The Mathematics Big Ideas are organized using the PA Mathematics Standards

More information

3.2 Matrix Multiplication

3.2 Matrix Multiplication 3.2 Matrix Multiplication Question : How do you multiply two matrices? Question 2: How do you interpret the entries in a product of two matrices? When you add or subtract two matrices, you add or subtract

More information

Temperature Scales. The metric system that we are now using includes a unit that is specific for the representation of measured temperatures.

Temperature Scales. The metric system that we are now using includes a unit that is specific for the representation of measured temperatures. Temperature Scales INTRODUCTION The metric system that we are now using includes a unit that is specific for the representation of measured temperatures. The unit of temperature in the metric system is

More information

MATLAB Tutorial. Chapter 6. Writing and calling functions

MATLAB Tutorial. Chapter 6. Writing and calling functions MATLAB Tutorial Chapter 6. Writing and calling functions In this chapter we discuss how to structure a program with multiple source code files. First, an explanation of how code files work in MATLAB is

More information

Simple Programming in MATLAB. Plotting a graph using MATLAB involves three steps:

Simple Programming in MATLAB. Plotting a graph using MATLAB involves three steps: Simple Programming in MATLAB Plotting Graphs: We will plot the graph of the function y = f(x) = e 1.5x sin(8πx), 0 x 1 Plotting a graph using MATLAB involves three steps: Create points 0 = x 1 < x 2

More information

Recall the basic property of the transpose (for any A): v A t Aw = v w, v, w R n.

Recall the basic property of the transpose (for any A): v A t Aw = v w, v, w R n. ORTHOGONAL MATRICES Informally, an orthogonal n n matrix is the n-dimensional analogue of the rotation matrices R θ in R 2. When does a linear transformation of R 3 (or R n ) deserve to be called a rotation?

More information

TWO-DIMENSIONAL TRANSFORMATION

TWO-DIMENSIONAL TRANSFORMATION CHAPTER 2 TWO-DIMENSIONAL TRANSFORMATION 2.1 Introduction As stated earlier, Computer Aided Design consists of three components, namely, Design (Geometric Modeling), Analysis (FEA, etc), and Visualization

More information

Trigonometry Review with the Unit Circle: All the trig. you ll ever need to know in Calculus

Trigonometry Review with the Unit Circle: All the trig. you ll ever need to know in Calculus Trigonometry Review with the Unit Circle: All the trig. you ll ever need to know in Calculus Objectives: This is your review of trigonometry: angles, six trig. functions, identities and formulas, graphs:

More information

Unit 1 Equations, Inequalities, Functions

Unit 1 Equations, Inequalities, Functions Unit 1 Equations, Inequalities, Functions Algebra 2, Pages 1-100 Overview: This unit models real-world situations by using one- and two-variable linear equations. This unit will further expand upon pervious

More information

The Center for Teaching, Learning, & Technology

The Center for Teaching, Learning, & Technology The Center for Teaching, Learning, & Technology Instructional Technology Workshops Microsoft Excel 2010 Formulas and Charts Albert Robinson / Delwar Sayeed Faculty and Staff Development Programs Colston

More information

fx-92b Collège 2D+ User s Guide http://edu.casio.com http://edu.casio.com/forum/ CASIO Worldwide Education Website CASIO EDUCATIONAL FORUM

fx-92b Collège 2D+ User s Guide http://edu.casio.com http://edu.casio.com/forum/ CASIO Worldwide Education Website CASIO EDUCATIONAL FORUM E fx-92b Collège 2D+ User s Guide CASIO Worldwide Education Website http://edu.casio.com CASIO EDUCATIONAL FORUM http://edu.casio.com/forum/ Contents Important Information... 2 Sample Operations... 2 Initializing

More information

This is a square root. The number under the radical is 9. (An asterisk * means multiply.)

This is a square root. The number under the radical is 9. (An asterisk * means multiply.) Page of Review of Radical Expressions and Equations Skills involving radicals can be divided into the following groups: Evaluate square roots or higher order roots. Simplify radical expressions. Rationalize

More information

SOME EXCEL FORMULAS AND FUNCTIONS

SOME EXCEL FORMULAS AND FUNCTIONS SOME EXCEL FORMULAS AND FUNCTIONS About calculation operators Operators specify the type of calculation that you want to perform on the elements of a formula. Microsoft Excel includes four different types

More information

FX 115 MS Training guide. FX 115 MS Calculator. Applicable activities. Quick Reference Guide (inside the calculator cover)

FX 115 MS Training guide. FX 115 MS Calculator. Applicable activities. Quick Reference Guide (inside the calculator cover) Tools FX 115 MS Calculator Handouts Other materials Applicable activities Quick Reference Guide (inside the calculator cover) Key Points/ Overview Advanced scientific calculator Two line display VPAM to

More information

Random Fibonacci-type Sequences in Online Gambling

Random Fibonacci-type Sequences in Online Gambling Random Fibonacci-type Sequences in Online Gambling Adam Biello, CJ Cacciatore, Logan Thomas Department of Mathematics CSUMS Advisor: Alfa Heryudono Department of Mathematics University of Massachusetts

More information

Programming Exercise 3: Multi-class Classification and Neural Networks

Programming Exercise 3: Multi-class Classification and Neural Networks Programming Exercise 3: Multi-class Classification and Neural Networks Machine Learning November 4, 2011 Introduction In this exercise, you will implement one-vs-all logistic regression and neural networks

More information