EEE161 Applied Electromagnetics Laboratory 1

Size: px
Start display at page:

Download "EEE161 Applied Electromagnetics Laboratory 1"

Transcription

1 Dr. Milica Marković Applied Electromagnetics Laboratory page 1 EEE161 Applied Electromagnetics Laboratory 1 Instructor: Dr. Milica Marković Office: Riverside Hall milica@csus.edu Web: milica This laboratory exercise will introduce you to concepts in vectors and coordinate systems that will be used in electrostatics and magnetostatics. Introduction 1. Find the Matlab program by going to Start, All Programs, Matlab 2. When the Matlab window opens, you will see three windows: Command, Command History and Current Directory. Later, when we make graphs, you will also see the graphics window. Do not type the program commands directly into the Command window. Even though this is possible, you want to have the entire program in front of you, so that you can debug the program if necessary. Matlab has its own program editor. 3. To write your code in Matlab editor, select File, New, M-File from the Matlab pulldown menu. 4. Save the new file as yourname.m. Be careful when you name a matlab file: (a) Avoid all special characters. (b) Do not use space (c) Do not start the file name with a number. (d) When you start writing your code, do not name any variables the same as the name of your file. (e) Do not name it sin, cos, or any other function that is likely to already exist. 5. Start typing your code 6. It is a good practice to write comments for each line of your code. 7. The first line of code should have the explanation of what is the purpose of the program. 8. The second line of the code should be clear all command. This command clears workspace, command screen and all variables. 9. Matlab has excellent documentation. Look for Matlab help. 10. Laboratory report. Use Matlab to help you assemble the report! When you are done with one section of the lab, save the matlab file, then select File, Publish to, Word Document. (In some newer versions of Matlab, the default file type is HTML. You need to change the file type first under File...) Your matlab file, all the information from command window and all plots will be placed in the word document that has the same name as your m file. Be patient, as it takes about 30 seconds for matlab to open the word file. To submit your final report, you can edit this file and add comments, then put all the files that together that you worked on during the laboratory session.

2 Dr. Milica Marković Applied Electromagnetics Laboratory page 2 Using Matlab as a calculator Copy and paste the sample Matlab code below in the new file yourname.m you created in step above. The code below defines two constants a1 and a2 with values 8 and 4. Constants are then added, subtracted, multiplied, divided. Subsequently, exponent, logarithm, sine, cosine, tangent of numbers is found. Note that variable names MUST start with a letter. % Create two scalars and add/subtract/multiply/divide them a1=8 a2=4 a3=a1+a2 a4=a1-a2 a5=a1*a2 a6=a1/a2 % Exponent, Logarthm, Sine, Cosine of a number a7=a1^a2 %Natural Logarithm a8=log(a1) %Base 10 logarithm a9=log10(a1) %Sine of a number a10=sin(a1) %Cosine of a number a11=cos(a1) %Tangent of a number a12=tan(a1) Problem 1a. Write a code in Matlab to find y = cos e x if x=5. Create a new matlab file, write comments for each line of code. Problem 1b. Explore Matlab help, and see how Matlab differentiates between angles given in degrees and radians. Specifically, write a code to find cosine of an angle of 45 o, cos(x). Define a constant zdeg to be 45 o, then define another constant zrad to be π 4. The cosine value should be the same, whether you define an angle in degrees or radians. What did you have to do to make Matlab understand you defined an angle in degrees? Hint: Open Matlab help, by selecting Help, then Product Help from the main window. Help window should open. Select Search Results tab in Help window. Type degrees then radians in Search For:.

3 Dr. Milica Marković Applied Electromagnetics Laboratory page 3 Arrays In all of the above examples, MATLAB writes the solution of your equation in Command Window. Some calculations, such as intermediate steps, don t need to be displayed in the Command Window. Type semicolumn (;) at the end of the line of code, for which you do not want the result to be displayed. Matlab code below creates arrays b, c and d. We use arrays to display vectors in Matlab. Array b represents components of the vector b in 3-dimensions b = 3 a x + 4 a y + 5 a z. Note that unit vectors a x, a y or a z aren t writen anywhere explicitly. Just always write the x component of b first in the Matlab array, followed by y and z components. Subsequently, vector b is multiplied with a constant a1. Finally we can check which number is at a certain location in vector b. %Create array b b=[3, 4, 5] %Create two more arrays, these vectors could represent a 5D space. c=[6,2,1,9,7] d=[1,2,3,4,5] %Create a constant (scalar) a1 a1=5 %Multiply array b with a scalar a1 b1=a1*b %We can check which number is in the second location in vector d b(2) Problem 2. Write a code in Matlab to add vectors b = 3 x + 4 y and a = x + 2 y. Solve this problem first on paper. Create a new matlab file, write comments for each line of code. Remember that when adding and subtracting vectors, we add and subtract appropriate components. Plotting vectors in x-y plane A function in Matlab that plots vectors is called quiver. Syntax of quiver function is as follows: quiver(x, Y, U, V, scale) (1) In the above expression, (X, Y ) is the point of vector s beginning. U, V are the vector s components in x and y directions. Constant at the end of expression will scale the vector. If you want to see the vector in it s actual length, use scale=1 (or 0). Scale = 2 doubles their relative length, and scale = 0.5 halves the length. For example, to plot a position vector (vector) b = 3 x + 4 y in it s actual length, write: quiver(0,0,3,4,1)

4 Dr. Milica Marković Applied Electromagnetics Laboratory page 4 Problem 3a. Write a code in Matlab to plot vectors b = 3 x + 4 y and a = x + 2 y. Solve this problem first on paper. Create a new matlab file, write comments for each line of code. Problem 3b. Find the sum and difference of the vectors defined above. Plot the vectors and their sum, then vectors and their difference on two separate graphs. Plotting vectors in 3D An equivalent function to plot vectors in 3D is called quiver3. Syntax of quiver3 function is as follows: Quiver3(X, Y, Z, U, V, W, const) (2) In the above expression, (X, Y, Z) is the point of vector s origin (beginning). U, V, W are the vector s components in x, y and z directions. Constant at the end of expression will scale the vector when graphed. If you want to see the vector in it s actual length, use scale=1 (or 0). Scale = 2 doubles their relative length, and scale = 0.5 halves the length. Problem 4a. Write a code in Matlab to plot vectors b = 3 x + 4 y + 3 z and a = x + 2 y + 3 z. Solve this problem first on paper. Create a new matlab file, write comments for each line of code. Note that you should get a vector in 3-dimensions now. Problem 4b. Find the sum and difference of the vectors defined above. Plot the vectors and their sum, then vectors and their difference on two separate graphs. Creating Matrices Matrices are used extensively in electrical engineering. There are several ways to generate matrices in Matlab. In the example below several matrices are generated. The first matrix in the example Matlab file below is matrix g, followed by the explanation on how to generate matrices that contain all zeros. g = [ %Here we generate a matrix $g$. Note that the new row is labeled by a semicolon sign g=[1 2 3; 4 5 6] ] %Here is two simple ways to generate a matrix 5x5 with all elements 0 aa=zeros(5) %We can also generate a 2x5 matrix of zeros aa1=zero(2,5) %OR generate a random values in a matrix aa2=rand(5)

5 a n1 x 1 + a n2 x a nn x n = b n (4) Dr. Milica Marković Applied Electromagnetics Laboratory page 5 %If a matrix row (or any other command in matlab that is too long) has too many %elements, th h1=[ ; ] %we can type h2=[ , ; ] %We can check which number is in a certain location h2(2,2) %We can also change the value at a location h2(2,2)=10000 %We can also create a column vector from the matrix h2 using the colon operator x=h2(:,1) %or a row vector x=h2(1,:) Matrix multiplication Matrices are used to represent systems of linear equations. For example, a system of linear equations: a 11 x 1 + a 12 x a 1n x n = b 1 (3) a 21 x 1 + a 22 x a 2n x n = b 2... can be represented in matrix form as [A]{x} = {b} (5) where matrices [A], {X} and {B} are

6 Dr. Milica Marković Applied Electromagnetics Laboratory page 6 a 11 a 12 a 1n a 21 a 22 a 2n [A] = a n1 a n2 a nn x 1 x 2 {X} =. x n b 1 b 2 {B} =. b n (6) (7) (8) (9) In general, when two matrices [A] and [B] are multiplied, the result can be represented as n c ij = a ik b kj (10) In Matlab, we often define vectors. If you multiply two vectors {X} and {Y }, the result will be k=1 c = n a k b k (11) k=1 The other vector has to be a column vector and the first vector a row vector. If both of vectors are defined as row vectors you have to transpose one of them. In Matlab transpose operator is appostrophe. Matrix multiplication To multiply matrices, matrix dimensions must agree. For example, if we have two matrices A (2 x 3)and B (3 x 2) as given below: [ a11 a A = 12 a 13 a 21 a 22 a 23 ] B = Then the product of the two matrices C = AB is equal to b 11 b 12 b 21 b 22 b 31 b 32 [ a11 b C = 11 + a 12 b 21 + a 13 b 31 a 21 b 12 + a 22 b 22 + a 23 b 32 ] In Matlab the multiplication sign is used to multiply scalars, vectors or matrices.

7 Dr. Milica Marković Applied Electromagnetics Laboratory page 7 Problem 6. Multiply two matrices A and B given below, with normal matrix multiplication rules on paper. Then run the bottom Matlab program and compare results. %Define two matrices A and B A=[1 2 3; 4 5 6; 7 8 9] B=[10 11; 12 13; 14 15] %Multiply matrices C=A*B Multiplication of matrices element by element Often we want to multiply only element a 11 in matrix A with the element at the same position of matrix B b 11. In that case we have to write a dot in front of the multiplication sign.. The matrices have to be of the same size, for example 3x5. [ a11 a A = 12 a 13 a 21 a 22 a 23 ] [ b11 b B = 12 b 13 b 21 b 22 b 23 ] Then the product of two matrices element-by-element D = A. B will be [ a11 b D = 11 a 12 b 12 a 13 b 13 a 21 b 21 a 22 b 22 a 23 b 23 ] Problem 5 1. Use matrices to represent (on paper) the following system of equations 5x + 15y = 15 (12) 5x + 7y = 10 (13) Label clearly A, X and B matrices. Write code in Matlab to find the solution of this system using inverse matrix [A], X = [A] 1 B. Problem 7. Multiply two matrices A and B given below, with element-by-element matrix multiplication on paper. Then run the bottom Matlab program and compare results. %Define two matrices A and B A=[1 2 3; 4 5 6; 7 8 9]

8 Dr. Milica Marković Applied Electromagnetics Laboratory page 8 B=[ ; ; ] %Multiply matrices D=A.*B Problem 8 Calculate the value of a function y = xcos(x) at points x = 0 : 0.1 : 100. Explain how will you do this in matlab? The first step is to generate the vector x. Then calculate the function y at all points x. Will you use matrix multiplication or dotted matrix multiplication? What do you get when you do matrix multiplication and what do you get when you use dotted matrix multiplication? Why? Making Plots It is often useful to represent data in graphical form. Data can be either the result of a simulation or actual data from the laboratory exercise. For example, you can measure voltage of a node in an electrical circuit over the range of frequencies. For example, you may get data that looks like this: Frequency [MHz] voltage [V] It is very useful to see this data in a graphical form. If you specify the frequency as a vector b, and the voltage as a vector c, you can use the program below to plot voltage as a function of frequency. %%MAKING PLOTS %Plot vector c on y-axis as a function of b vector on x-axis %Define array of frequencies b=[ ] %Define array of voltages c=[ ] %Plot voltage vs. frequency plot(b,c) It is usually required that the plot is labeled: x-axis, y-axis, title etc. With the code below you can make the line width thicker, change the x-axis to log scale, add title etc. In addition, sometimes, it is easier to define a vector by defining start and end point and step. See how vector x is defined below. Start point of the vector is 0, end point is 2π and step is π/100. You can further explore Matlab by pressing F1 or selecting help from the bar, then select Demos tab, select Graphics and then 2-D plots. %Let s make the line of the plot thicker plot(b,c, LineWidth,4)

9 Dr. Milica Marković Applied Electromagnetics Laboratory page 9 %Let s change the line color plot(b,c, Color, red ) %Let s make a log scale on the x-axis semilogx(b,c) %Let s add a title to the plot and the labels for x and y axis and a grid plot(b,c), title( Experiment 1 ), xlabel( frequency ), ylabel( resistance ),grid %Plotting functions %first generate the vector of x-axis points from 0 to 2*pi with step pi/100 x=0:pi/100:2*pi %define a sin function of x y=sin(x) %plot the function plot(x,y) %Let s see some other interesting functions Matlab can make such as square %wave y1=square(x) plot(x,y1) %tangent y2=atan(x) plot(x,y2) %tangent in a better range of x-values x1=0:pi/100:pi/2-0.01*pi y3=tan(x1) plot(x1,y3) %What if we want to plot two functions on the same graph? plot(x,y) hold on plot(x,y1) %or to do two plots on the same graph we can write the following plot(x,y,x,y1) %above we can see that the matlab takes care of the graph colors

10 Dr. Milica Marković Applied Electromagnetics Laboratory page 10 Position Vector Position vector of a point (2,3,3) is shown in Figure 1, can be written in CCS as: A = A x a x + A y a y + A z a z (14) Figure 1: Position vector of point in Cartesian Coordinate System. Magnitude of the vector in Figure 1 is given as A = direction of A is given as: A 2 x + A 2 y + A 2 z, and unit vector a in the  = A A  = A x a x + A y a y + A z a z A 2 x + A 2 y + A 2 z (15) (16) Distance Vector A vector that represents a distance between two points r be in a Cartesian Coordinate system can be represented as a combination of two position vectors. The distance vector r be starts at point B and ends at point E, see Figure 2. Two position vectors can be assigned to these two points. As shown in Figure 2, the two position vectors are the position vector r b of the point B and the position vector r e of the end point E. Using these two position vectors, and vector subtraction, we can find the components of the vector r be. If the points B, E are given as B(b x, b y, b z ), E(e x, e y, e z ). Postion vectors r b and r e are r b = b x a x + b y a y + b z a z (17) r e = e x e x + e y a y + e z a z (18) (19)

11 Dr. Milica Marković Applied Electromagnetics Laboratory page 11 Vector r be is the difference between the two position vectors. r be = r e r b (20) r be = (e x b x ) e x + (e y b y ) a y + (e z b z ) a z (21) The unit vector and magnitude of the vector r be are r be = (e x b x ) 2 + (e y b y ) 2 + (e z b z ) 2 (22) rˆ be = (e x b x ) a x + (e y b y ) a y + (e z b z ) a z (23) (ex b x ) 2 + (e y b y ) 2 + (e z b z ) 2 Figure 2: Vector r be starts at a point B, and ends at a point E. Two position vectors r b and r e label the beginning and end of vector r be. Problem 9. Pick a point in Cartesian Coordinate System to represent the position of a charge q and another point away from the charge. For example: (1,2,3) and (1,4,5). Do not use these two points, pick your own points. Keep both points in the first quadrant, to simplify visualisation. Write Matlab code to find the distance vector R d between the charge q located at a point q(x 1, y 1, z 1 ), labeled with position vector R 1, and point P (x, y, z), labeled with a position vector P as shown in Figure 3. Use Matlab to plot the two position vectors R 1 and R and the distance vector R d between them. Subsequently, find the magnitude and unit vector in this direction, see Equations Problem 10. Modify the code in the previous problem to show the electric field due to a single charge, positioned as shown in Figure 3. Assume that the charge is q 1 = 4 πɛ o C. Plot the position vectors, distance vectors and individual electric field vectors, than the total vector due to both charges. Use Equation 21 for distance vector. Use the first part of Equation 24 to plot the electric field. If you have to, scale the electric field vector in such a way that all vectors are visible. E = q 1 4πɛ 0 (x x1 ) 2 + (y y 1 ) 2 + (z z 1 ) 23 r a (24)

12 Dr. Milica Marković Applied Electromagnetics Laboratory page 12 Figure 3: Distance Vector. Problem 11. Modify the code in the previous problem to show the electric field due to two charges, positioned as shown in Figure 4. Assume that the charges are q 1 = 4 πɛ o C and q 2 = 8πɛ o. Pick the position of the second charge. Plot the position vectors, distance vectors and individual electric field vectors, than the total vector due to both charges, as shown in Figure 4. For two charges, as shown in Figure 4, the total field at a point is given by Equation 25. E = q 1 r q 2 4πɛ 0 (x x1 ) 2 + (y y 1 ) 2 + (z z 1 ) 23 a + r 4πɛ 0 (x x2 ) 2 + (y y 2 ) 2 + (z z 2 ) 23 b (25) Conclusion Figure 4: Electric Field due to two charges. Solve all of the above examples by hand and compare the results with the ones you found during the lab. In addition, for each of the problems, write what you have learned. Do not write an essay, just in a few sentences write what you have done in each problem, and specifically what you have learned from the work done. Due Date Submit the printout of the lab work and the conclusion by NEXT FRIDAY. LAB IS DUE BY noon (stamped) next Friday in the main office. No late labs. Do not bring previous lab writeup for the next Lab session.

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu MATLAB BASICS Instructor: Prof. Shahrouk Ahmadi 1. What are M-files TA: Kartik Bulusu M-files are files that contain a collection of MATLAB commands or are used to define new MATLAB functions. For the

More information

New Mexico Tech Hyd 510

New Mexico Tech Hyd 510 Vectors vector - has magnitude and direction (e.g. velocity, specific discharge, hydraulic gradient) scalar - has magnitude only (e.g. porosity, specific yield, storage coefficient) unit vector - a unit

More information

EEE161 Applied Electromagnetics Laboratory 3

EEE161 Applied Electromagnetics Laboratory 3 Dr. Milica Marković Applied Electromagnetics Laboratory page 1 EEE161 Applied Electromagnetics Laboratory 3 Instructor: Dr. Milica Marković Office: Riverside Hall 3028 Email: milica@csus.edu Web:http://gaia.ecs.csus.edu/

More information

LAB 1: MATLAB - Introduction to Programming. Objective:

LAB 1: MATLAB - Introduction to Programming. Objective: LAB 1: MATLAB - Introduction to Programming Objective: The objective of this laboratory is to review how to use MATLAB as a programming tool and to review a classic analytical solution to a steady-state

More information

January 18, 2008 Steve Gu. Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB,

January 18, 2008 Steve Gu. Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB, Introduction to MATLAB January 18, 2008 Steve Gu Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB, Part I: Basics MATLAB Environment Getting Help Variables Vectors, Matrices, and

More information

EEE161 Applied Electromagnetics Laboratory 4

EEE161 Applied Electromagnetics Laboratory 4 Dr. Milica Marković Applied Electromagnetics Laboratory page 1 EEE161 Applied Electromagnetics Laboratory 4 Instructor: Dr. Milica Marković Office: Riverside Hall 3028 Email: milica@csus.edu Web:http://gaia.ecs.csus.edu/

More information

Matrices and Vectors

Matrices and Vectors Matrices and Vectors James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University November 11, 2013 Outline 1 Matrices and Vectors 2 Vector Details 3 Matrix

More information

Lab 2: Static Response, Cantilevered Beam

Lab 2: Static Response, Cantilevered Beam Contents 1 Lab 2: Static Response, Cantilevered Beam 3 1.1 Objectives.......................................... 3 1.2 Scalars, Vectors and Matrices (Allen Downey)...................... 3 1.2.1 Attribution.....................................

More information

Homework 1 Solutions

Homework 1 Solutions 18-9 Signals and Systems Profs. Byron Yu and Pulkit Grover Fall 18 Homework 1 Solutions Part One 1. (8 points) Consider the DT signal given by the algorithm: x[] = 1 x[1] = x[n] = x[n 1] x[n ] (a) Plot

More information

EEE161 Applied Electromagnetics Laboratory 2

EEE161 Applied Electromagnetics Laboratory 2 Dr. Milica Marković Applied Electromagnetics Laboratory page 1 EEE161 Applied Electromagnetics Laboratory 2 Instructor: Dr. Milica Marković Office: Riverside Hall 5026 Email: milica@csus.edu Web:http://gaia.ecs.csus.edu/

More information

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations Lab 2 Worksheet Problems Problem : Geometry and Linear Equations Linear algebra is, first and foremost, the study of systems of linear equations. You are going to encounter linear systems frequently in

More information

OKLAHOMA STATE UNIVERSITY

OKLAHOMA STATE UNIVERSITY OKLAHOMA STATE UNIVERSITY ECEN 4413 - Automatic Control Systems Matlab Lecture 1 Introduction and Control Basics Presented by Moayed Daneshyari 1 What is Matlab? Invented by Cleve Moler in late 1970s to

More information

An Introduction to Scilab for EE 210 Circuits Tony Richardson

An Introduction to Scilab for EE 210 Circuits Tony Richardson An Introduction to Scilab for EE 210 Circuits Tony Richardson Introduction This is a brief introduction to Scilab. It is recommended that you try the examples as you read through this introduction. What

More information

L3: Review of linear algebra and MATLAB

L3: Review of linear algebra and MATLAB L3: Review of linear algebra and MATLAB Vector and matrix notation Vectors Matrices Vector spaces Linear transformations Eigenvalues and eigenvectors MATLAB primer CSCE 666 Pattern Analysis Ricardo Gutierrez-Osuna

More information

Statistical methods. Mean value and standard deviations Standard statistical distributions Linear systems Matrix algebra

Statistical methods. Mean value and standard deviations Standard statistical distributions Linear systems Matrix algebra Statistical methods Mean value and standard deviations Standard statistical distributions Linear systems Matrix algebra Statistical methods Generating random numbers MATLAB has many built-in functions

More information

Introduction to Computational Neuroscience

Introduction to Computational Neuroscience CSE2330 Introduction to Computational Neuroscience Basic computational tools and concepts Tutorial 1 Duration: two weeks 1.1 About this tutorial The objective of this tutorial is to introduce you to: the

More information

USE OF MATLAB TO UNDERSTAND BASIC MATHEMATICS

USE OF MATLAB TO UNDERSTAND BASIC MATHEMATICS USE OF MATLAB TO UNDERSTAND BASIC MATHEMATICS Sanjay Gupta P. G. Department of Mathematics, Dev Samaj College For Women, Punjab ( India ) ABSTRACT In this paper, we talk about the ways in which computer

More information

M. Matrices and Linear Algebra

M. Matrices and Linear Algebra M. Matrices and Linear Algebra. Matrix algebra. In section D we calculated the determinants of square arrays of numbers. Such arrays are important in mathematics and its applications; they are called matrices.

More information

Linear Algebra Using MATLAB

Linear Algebra Using MATLAB Linear Algebra Using MATLAB MATH 5331 1 May 12, 2010 1 Selected material from the text Linear Algebra and Differential Equations Using MATLAB by Martin Golubitsky and Michael Dellnitz Contents 1 Preliminaries

More information

Matrices: 2.1 Operations with Matrices

Matrices: 2.1 Operations with Matrices Goals In this chapter and section we study matrix operations: Define matrix addition Define multiplication of matrix by a scalar, to be called scalar multiplication. Define multiplication of two matrices,

More information

EE 4314 Lab 1 Handout Control Systems Simulation with MATLAB and SIMULINK Spring Lab Information

EE 4314 Lab 1 Handout Control Systems Simulation with MATLAB and SIMULINK Spring Lab Information EE 4314 Lab 1 Handout Control Systems Simulation with MATLAB and SIMULINK Spring 2013 1. Lab Information This is a take-home lab assignment. There is no experiment for this lab. You will study the tutorial

More information

TOPIC 2 Computer application for manipulating matrix using MATLAB

TOPIC 2 Computer application for manipulating matrix using MATLAB YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM TOPIC 2 Computer application for manipulating matrix using MATLAB Definition of Matrices in MATLAB

More information

Algebraic. techniques1

Algebraic. techniques1 techniques Algebraic An electrician, a bank worker, a plumber and so on all have tools of their trade. Without these tools, and a good working knowledge of how to use them, it would be impossible for them

More information

Physics with Matlab and Mathematica Exercise #1 28 Aug 2012

Physics with Matlab and Mathematica Exercise #1 28 Aug 2012 Physics with Matlab and Mathematica Exercise #1 28 Aug 2012 You can work this exercise in either matlab or mathematica. Your choice. A simple harmonic oscillator is constructed from a mass m and a spring

More information

Note: The command name is upper case in the description given by help, but must be lower case in actual use. And the backslash Anb is dierent when A i

Note: The command name is upper case in the description given by help, but must be lower case in actual use. And the backslash Anb is dierent when A i MATLAB Tutorial You need a small number 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 to

More information

August 7, 2007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION

August 7, 2007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION August 7, 007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION PURPOSE: This experiment illustrates the numerical solution of Laplace's Equation using a relaxation method. The results of the relaxation method

More information

Lecture 5b: Starting Matlab

Lecture 5b: Starting Matlab Lecture 5b: Starting Matlab James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University August 7, 2013 Outline 1 Resources 2 Starting Matlab 3 Homework

More information

Linear Motion with Constant Acceleration

Linear Motion with Constant Acceleration Linear Motion 1 Linear Motion with Constant Acceleration Overview: First you will attempt to walk backward with a constant acceleration, monitoring your motion with the ultrasonic motion detector. Then

More information

Core Mathematics 2 Trigonometry

Core Mathematics 2 Trigonometry Core Mathematics 2 Trigonometry Edited by: K V Kumaran Email: kvkumaran@gmail.com Core Mathematics 2 Trigonometry 2 1 Trigonometry Sine, cosine and tangent functions. Their graphs, symmetries and periodicity.

More information

Matlab Instruction Primer; Chem 691, Spring 2016

Matlab Instruction Primer; Chem 691, Spring 2016 1 Matlab Instruction Primer; Chem 691, Spring 2016 This version dated February 10, 2017 CONTENTS I. Help: To obtain information about any instruction in Matlab 1 II. Scripting 1 III. Loops, determine an

More information

EEM Simple use of Matlab

EEM Simple use of Matlab EEM 123 - Simple use of Matlab 0) Starting Matlab and basic operations Matlab is a powerful engineering tool, specifically designed to allow engineers to make simulations closest to the real world while

More information

Conformational Analysis of n-butane

Conformational Analysis of n-butane Conformational Analysis of n-butane In this exercise you will calculate the Molecular Mechanics (MM) single point energy of butane in various conformations with respect to internal rotation around the

More information

Vector, Matrix, and Tensor Derivatives

Vector, Matrix, and Tensor Derivatives Vector, Matrix, and Tensor Derivatives Erik Learned-Miller The purpose of this document is to help you learn to take derivatives of vectors, matrices, and higher order tensors (arrays with three dimensions

More information

Matrices A matrix is a rectangular array of numbers. For example, the following rectangular arrays of numbers are matrices: 2 1 2

Matrices A matrix is a rectangular array of numbers. For example, the following rectangular arrays of numbers are matrices: 2 1 2 Matrices A matrix is a rectangular array of numbers For example, the following rectangular arrays of numbers are matrices: 7 A = B = C = 3 6 5 8 0 6 D = [ 3 5 7 9 E = 8 7653 0 Matrices vary in size An

More information

Matrix Arithmetic. j=1

Matrix Arithmetic. j=1 An m n matrix is an array A = Matrix Arithmetic a 11 a 12 a 1n a 21 a 22 a 2n a m1 a m2 a mn of real numbers a ij An m n matrix has m rows and n columns a ij is the entry in the i-th row and j-th column

More information

MATH REFRESHER ANSWER SHEET (Note: Only this answer sheet and the following graph page will be evaluated)

MATH REFRESHER ANSWER SHEET (Note: Only this answer sheet and the following graph page will be evaluated) NAME: SCORE: /50 MATH REFRESHER ANSWER SHEET (Note: Only this answer sheet and the following graph page will be evaluated) 1. 23. 2. 24. 3. 25. 4. 26. 5. 27. 6. 28. 7. 29. 8. 30. 9. 31. 10. 32. 11. 33.

More information

Math Refresher Answer Sheet (NOTE: Only this answer sheet and the following graph will be evaluated)

Math Refresher Answer Sheet (NOTE: Only this answer sheet and the following graph will be evaluated) Name: Score: / 50 Math Refresher Answer Sheet (NOTE: Only this answer sheet and the following graph will be evaluated) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. MAKE SURE CALCULATOR

More information

BCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012

BCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012 BCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012 Introduction Maple is a powerful collection of routines to aid in the solution of mathematical problems

More information

Math Assignment 3 - Linear Algebra

Math Assignment 3 - Linear Algebra Math 216 - Assignment 3 - Linear Algebra Due: Tuesday, March 27. Nothing accepted after Thursday, March 29. This is worth 15 points. 10% points off for being late. You may work by yourself or in pairs.

More information

MOL410/510 Problem Set 1 - Linear Algebra - Due Friday Sept. 30

MOL410/510 Problem Set 1 - Linear Algebra - Due Friday Sept. 30 MOL40/50 Problem Set - Linear Algebra - Due Friday Sept. 30 Use lab notes to help solve these problems. Problems marked MUST DO are required for full credit. For the remainder of the problems, do as many

More information

INTERSECTIONS OF PLANES

INTERSECTIONS OF PLANES GG303 Lab 4 9/17/14 1 INTERSECTIONS OF PLANES Lab 4 (125 points total) Read each exercise completely before you start it so that you understand the problem-solving approach you are asked to execute This

More information

2018 Arizona State University Page 1 of 16

2018 Arizona State University Page 1 of 16 NAME: MATH REFRESHER ANSWER SHEET (Note: Write all answers on this sheet and the following graph page.) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27.

More information

MATH EVALUATION. What will you learn in this Lab?

MATH EVALUATION. What will you learn in this Lab? MATH EVALUATION What will you learn in this Lab? This exercise is designed to assess whether you have been exposed to the mathematical methods and skills necessary to complete the lab exercises you will

More information

Simulink Tutorial 1 CPE562

Simulink Tutorial 1 CPE562 Simulink Tutorial 1 CPE562 Week 1 Introduction to Simulink Familiarization with Simulink blocks Sources: Constants Sinks: Display Operations: Sum, Product, Add, Divide. Mathematical operations involving

More information

AP CALCULUS AB. Summer Assignment. Page 1

AP CALCULUS AB. Summer Assignment. Page 1 AP CALCULUS AB Summer Assignment Page 1 Welcome to AP Calculus AB. This will be the toughest class yet in your mathematical careers but the benefit you will receive by having this experience in high school

More information

Solving Differential Equations on 2-D Geometries with Matlab

Solving Differential Equations on 2-D Geometries with Matlab Solving Differential Equations on 2-D Geometries with Matlab Joshua Wall Drexel University Philadelphia, PA 19104 (Dated: April 28, 2014) I. INTRODUCTION Here we introduce the reader to solving partial

More information

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK What is SIMULINK? SIMULINK is a software package for modeling, simulating, and analyzing

More information

Lab 6: Linear Algebra

Lab 6: Linear Algebra 6.1 Introduction Lab 6: Linear Algebra This lab is aimed at demonstrating Python s ability to solve linear algebra problems. At the end of the assignment, you should be able to write code that sets up

More information

INTERSECTIONS OF PLANES

INTERSECTIONS OF PLANES GG303 Lab 4 10/9/13 1 INTERSECTIONS OF PLANES Lab 4 Read each exercise completely before you start it so that you understand the problem-solving approach you are asked to execute This will help keep the

More information

MAT 343 Laboratory 6 The SVD decomposition and Image Compression

MAT 343 Laboratory 6 The SVD decomposition and Image Compression MA 4 Laboratory 6 he SVD decomposition and Image Compression In this laboratory session we will learn how to Find the SVD decomposition of a matrix using MALAB Use the SVD to perform Image Compression

More information

In this LAB you will explore the following topics using MATLAB. Investigate properties of the column space of a matrix.

In this LAB you will explore the following topics using MATLAB. Investigate properties of the column space of a matrix. MATH 22AL Lab # 6 Objectives In this LAB you will explore the following topics using MATLAB. Investigate properties of the null space of a matrix. Learn how to find a basis for null-space of a matrix.

More information

Temperature measurement

Temperature measurement Luleå University of Technology Johan Carlson Last revision: July 22, 2009 Measurement Technology and Uncertainty Analysis - E7021E Lab 3 Temperature measurement Introduction In this lab you are given a

More information

GRAPHIC WEEK 7 DR. USMAN ULLAH SHEIKH DR. MUSA MOHD MOKJI DR. MICHAEL TAN LOONG PENG DR. AMIRJAN NAWABJAN DR. MOHD ADIB SARIJARI

GRAPHIC WEEK 7 DR. USMAN ULLAH SHEIKH DR. MUSA MOHD MOKJI DR. MICHAEL TAN LOONG PENG DR. AMIRJAN NAWABJAN DR. MOHD ADIB SARIJARI GRAPHIC SKEE1022 SCIENTIFIC PROGRAMMING WEEK 7 DR. USMAN ULLAH SHEIKH DR. MUSA MOHD MOKJI DR. MICHAEL TAN LOONG PENG DR. AMIRJAN NAWABJAN DR. MOHD ADIB SARIJARI 1 OBJECTIVE 2-dimensional line plot function

More information

Graphical Analysis and Errors MBL

Graphical Analysis and Errors MBL Graphical Analysis and Errors MBL I Graphical Analysis Graphs are vital tools for analyzing and displaying data Graphs allow us to explore the relationship between two quantities -- an independent variable

More information

Read through A Graphing Checklist for Physics Graduate Students before submitting any plots in this module. See the course website for the link.

Read through A Graphing Checklist for Physics Graduate Students before submitting any plots in this module. See the course website for the link. Module C2: MatLab The Physics and Astronomy Department has several copies of MATLAB installed on computers that can be accessed by students. MATLAB is a highly developed software package that allows the

More information

How to rotate a vector using a rotation matrix

How to rotate a vector using a rotation matrix How to rotate a vector using a rotation matrix One of the most useful operations in computer graphics is the rotation of a vector using a rotation matrix. I want to introduce the underlying idea of the

More information

Matrices BUSINESS MATHEMATICS

Matrices BUSINESS MATHEMATICS Matrices BUSINESS MATHEMATICS 1 CONTENTS Matrices Special matrices Operations with matrices Matrix multipication More operations with matrices Matrix transposition Symmetric matrices Old exam question

More information

Geology Geomathematics. An introduction to differential calculus. tom.h.wilson

Geology Geomathematics. An introduction to differential calculus. tom.h.wilson Geology 351 - Geomathematics An introduction to differential calculus tom.h.wilson tom.wilson@mail.wvu.edu Dept. Geology and Geography West Virginia University Developing basic concepts and learning some

More information

Vector Operations. Vector Operations. Graphical Operations. Component Operations. ( ) ˆk

Vector Operations. Vector Operations. Graphical Operations. Component Operations. ( ) ˆk Vector Operations Vector Operations ME 202 Multiplication by a scalar Addition/subtraction Scalar multiplication (dot product) Vector multiplication (cross product) 1 2 Graphical Operations Component Operations

More information

Laboratory handout 1 Mathematical preliminaries

Laboratory handout 1 Mathematical preliminaries laboratory handouts, me 340 2 Laboratory handout 1 Mathematical preliminaries In this handout, an expression on the left of the symbol := is defined in terms of the expression on the right. In contrast,

More information

Purpose: This lab is an experiment to verify Malus Law for polarized light in both a two and three polarizer system.

Purpose: This lab is an experiment to verify Malus Law for polarized light in both a two and three polarizer system. Purpose: This lab is an experiment to verify Malus Law for polarized light in both a two and three polarizer system. The basic description of Malus law is given as I = I 0 (cos 2 θ ) Where I is the transmitted

More information

Lab 1: Dynamic Simulation Using Simulink and Matlab

Lab 1: Dynamic Simulation Using Simulink and Matlab Lab 1: Dynamic Simulation Using Simulink and Matlab Objectives In this lab you will learn how to use a program called Simulink to simulate dynamic systems. Simulink runs under Matlab and uses block diagrams

More information

The roots are found with the following two statements. We have denoted the polynomial as p1, and the roots as roots_ p1.

The roots are found with the following two statements. We have denoted the polynomial as p1, and the roots as roots_ p1. Part II Lesson 10 Numerical Analysis Finding roots of a polynomial In MATLAB, a polynomial is expressed as a row vector of the form [an an 1 a2 a1 a0]. The elements ai of this vector are the coefficients

More information

Chapter 2: Numeric, Cell, and Structure Arrays

Chapter 2: Numeric, Cell, and Structure Arrays Chapter 2: Numeric, Cell, and Structure Arrays Topics Covered: Vectors Definition Addition Multiplication Scalar, Dot, Cross Matrices Row, Column, Square Transpose Addition Multiplication Scalar-Matrix,

More information

Phys 201. Matrices and Determinants

Phys 201. Matrices and Determinants Phys 201 Matrices and Determinants 1 1.1 Matrices 1.2 Operations of matrices 1.3 Types of matrices 1.4 Properties of matrices 1.5 Determinants 1.6 Inverse of a 3 3 matrix 2 1.1 Matrices A 2 3 7 =! " 1

More information

SESSION 6 Trig. Equations and Identities. Math 30-1 R 3. (Revisit, Review and Revive)

SESSION 6 Trig. Equations and Identities. Math 30-1 R 3. (Revisit, Review and Revive) SESSION 6 Trig. Equations and Identities Math 30-1 R 3 (Revisit, Review and Revive) 1 P a g e 2 P a g e Mathematics 30-1 Learning Outcomes Specific Outcome 5: Solve, algebraically and graphically, first

More information

Mathematics for Graphics and Vision

Mathematics for Graphics and Vision Mathematics for Graphics and Vision Steven Mills March 3, 06 Contents Introduction 5 Scalars 6. Visualising Scalars........................ 6. Operations on Scalars...................... 6.3 A Note on

More information

Introduction to MatLab

Introduction to MatLab Introduction to MatLab 1 Introduction to MatLab Graduiertenkolleg Kognitive Neurobiologie Friday, 05 November 2004 Thuseday, 09 Novemer 2004 Kurt Bräuer Institut für Theoretische Physik, Universität Tübingen

More information

+ MATRIX VARIABLES AND TWO DIMENSIONAL ARRAYS

+ MATRIX VARIABLES AND TWO DIMENSIONAL ARRAYS + MATRIX VARIABLES AND TWO DIMENSIONAL ARRAYS Matrices are organized rows and columns of numbers that mathematical operations can be performed on. MATLAB is organized around the rules of matrix operations.

More information

MATLAB and Mathematical Introduction Will be discussed in class on 1/24/11

MATLAB and Mathematical Introduction Will be discussed in class on 1/24/11 MATLAB and Mathematical Introduction Will be discussed in class on 1/24/11 GEOP 523; Theoretical Seismology January 17, 2011 Much of our work in this class will be done using MATLAB. The goal of this exercise

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Objective: Students will gain familiarity with using Excel to record data, display data properly, use built-in formulae to do calculations, and plot and fit data with linear functions.

More information

A Level. A Level Mathematics. AQA, Edexcel, OCR. Name: Total Marks:

A Level. A Level Mathematics. AQA, Edexcel, OCR. Name: Total Marks: Visit http://www.mathsmadeeasy.co.uk/ for more fantastic resources. AQA, Edexcel, OCR A Level A Level Mathematics Understand and use the standard small angle approximations of sine, cosine and tangent

More information

Visualizing Complex-valued Functions

Visualizing Complex-valued Functions 13 Visualizing Complex-valued Functions Lab Objective: Functions that map from the complex plane into the complex plane are difficult to fully visualize because the domain and range are both 2-dimensional.

More information

Matlab Exercise 0 Due 1/25/06

Matlab Exercise 0 Due 1/25/06 Matlab Exercise 0 Due 1/25/06 Geop 523 Theoretical Seismology January 18, 2006 Much of our work in this class will be done using Matlab. The goal of this exercise is to get you familiar with using Matlab

More information

A primer on matrices

A primer on matrices A primer on matrices Stephen Boyd August 4, 2007 These notes describe the notation of matrices, the mechanics of matrix manipulation, and how to use matrices to formulate and solve sets of simultaneous

More information

( and 1 degree (1 ) , there are. radians in a full circle. As the circumference of a circle is. radians. Therefore, 1 radian.

( and 1 degree (1 ) , there are. radians in a full circle. As the circumference of a circle is. radians. Therefore, 1 radian. Angles are usually measured in radians ( c ). The radian is defined as the angle that results when the length of the arc of a circle is equal to the radius of that circle. As the circumference of a circle

More information

Matlab for Review. NDSU Matlab Review pg 1

Matlab for Review. NDSU Matlab Review pg 1 NDSU Matlab Review pg 1 Becoming familiar with MATLAB The console The editor The graphics windows The help menu Saving your data (diary) General environment and the console Matlab for Review Simple numerical

More information

Name (print): Lab (circle): W8 Th8 Th11 Th2 F8. θ (radians) θ (degrees) cos θ sin θ π/ /2 1/2 π/4 45 2/2 2/2 π/3 60 1/2 3/2 π/

Name (print): Lab (circle): W8 Th8 Th11 Th2 F8. θ (radians) θ (degrees) cos θ sin θ π/ /2 1/2 π/4 45 2/2 2/2 π/3 60 1/2 3/2 π/ Name (print): Lab (circle): W8 Th8 Th11 Th2 F8 Trigonometric Identities ( cos(θ) = cos(θ) sin(θ) = sin(θ) sin(θ) = cos θ π ) 2 Cosines and Sines of common angles Euler s Formula θ (radians) θ (degrees)

More information

MEASUREMENT OF THE CHARGE TO MASS RATIO (e/m e ) OF AN ELECTRON

MEASUREMENT OF THE CHARGE TO MASS RATIO (e/m e ) OF AN ELECTRON MEASUREMENT OF THE CHARGE TO MASS RATIO (e/m e ) OF AN ELECTRON Object This experiment will allow you to observe and understand the motion of a charged particle in a magnetic field and to measure the ratio

More information

PROBLEMS. PDF processed with CutePDF evaluation edition

PROBLEMS. PDF processed with CutePDF evaluation edition 114 Chapter 3 Built-In MATLAB Functions PROBLEMS Elementary Math Functions 3.1 Find the cube root of -5, both by using the nthroot function and by raising -5 to the 1/3 power. Explain the difference in

More information

Announcements Wednesday, October 25

Announcements Wednesday, October 25 Announcements Wednesday, October 25 The midterm will be returned in recitation on Friday. The grade breakdown is posted on Piazza. You can pick it up from me in office hours before then. Keep tabs on your

More information

LAB Exercise #4 - Answers The Traction Vector and Stress Tensor. Introduction. Format of lab. Preparation reading

LAB Exercise #4 - Answers The Traction Vector and Stress Tensor. Introduction. Format of lab. Preparation reading LAB Exercise #4 - Answers The Traction Vector and Stress Tensor Due: Thursday, 26 February 2009 (Special Thanks to D.D. Pollard who pioneered this exercise in 1991) Introduction Stress concentrations in

More information

EE263 Review Session 1

EE263 Review Session 1 EE263 Review Session 1 October 5, 2018 0.1 Importing Variables from a MALAB.m file If you are importing variables given in file vars.m, use the following code at the beginning of your script. close a l

More information

Introduction to Hartree-Fock calculations in Spartan

Introduction to Hartree-Fock calculations in Spartan EE5 in 2008 Hannes Jónsson Introduction to Hartree-Fock calculations in Spartan In this exercise, you will get to use state of the art software for carrying out calculations of wavefunctions for molecues,

More information

Introduction to SVD and Applications

Introduction to SVD and Applications Introduction to SVD and Applications Eric Kostelich and Dave Kuhl MSRI Climate Change Summer School July 18, 2008 Introduction The goal of this exercise is to familiarize you with the basics of the singular

More information

Escola Federal de Engenharia de Itajubá

Escola Federal de Engenharia de Itajubá Escola Federal de Engenharia de Itajubá Departamento de Engenharia Mecânica Pós-Graduação em Engenharia Mecânica MPF04 ANÁLISE DE SINAIS E AQUISIÇÃO DE DADOS SINAIS E SISTEMAS Trabalho 01 (MATLAB) Prof.

More information

GLY-5828 Calculus Review/Assignment 1

GLY-5828 Calculus Review/Assignment 1 Rise GLY-5828 Calculus Review/Assignment 1 Slope y 2 y 1 Run x 1 x 2 Slope is defined as the rise over the run: Slope = rise/run. The rise is the change in the y value and the run is the change in the

More information

tom.h.wilson Dept. Geology and Geography West Virginia University Tom Wilson, Department of Geology and Geography

tom.h.wilson Dept. Geology and Geography West Virginia University Tom Wilson, Department of Geology and Geography tom.h.wilson tom.wilson@mail.wvu.edu Dept. Geology and Geography West Virginia University Items on the to do list Finish reading Chapter 8 and look over problems 8.13 and 8.14. Problems 8.13 and 8.14 are

More information

Numerical differential geometry in Matlab

Numerical differential geometry in Matlab Numerical differential geometry in Matlab John Kerl Department of Mathematics, University of Arizona Graduate Student Colloquium January 16, 28 J. Kerl (Arizona) Numerical differential geometry in Matlab

More information

MAT 2037 LINEAR ALGEBRA I web:

MAT 2037 LINEAR ALGEBRA I web: MAT 237 LINEAR ALGEBRA I 2625 Dokuz Eylül University, Faculty of Science, Department of Mathematics web: Instructor: Engin Mermut http://kisideuedutr/enginmermut/ HOMEWORK 2 MATRIX ALGEBRA Textbook: Linear

More information

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

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

More information

Homework Assignment 4 Root Finding Algorithms The Maximum Velocity of a Car Due: Friday, February 19, 2010 at 12noon

Homework Assignment 4 Root Finding Algorithms The Maximum Velocity of a Car Due: Friday, February 19, 2010 at 12noon ME 2016 A Spring Semester 2010 Computing Techniques 3-0-3 Homework Assignment 4 Root Finding Algorithms The Maximum Velocity of a Car Due: Friday, February 19, 2010 at 12noon Description and Outcomes In

More information

MEASUREMENT OF THE CHARGE TO MASS RATIO (e/m e ) OF AN ELECTRON

MEASUREMENT OF THE CHARGE TO MASS RATIO (e/m e ) OF AN ELECTRON MEASUREMENT OF THE CHARGE TO MASS RATIO (e/m e ) OF AN ELECTRON Object This experiment will allow you to observe and understand the motion of a charged particle in a magnetic field and to measure the ratio

More information

EE263 homework 3 solutions

EE263 homework 3 solutions EE263 Prof. S. Boyd EE263 homework 3 solutions 2.17 Gradient of some common functions. Recall that the gradient of a differentiable function f : R n R, at a point x R n, is defined as the vector f(x) =

More information

AP Physics 2 Summer Assignment

AP Physics 2 Summer Assignment AP Physics 2 Summer Assignment Welcome to AP Physics 2! It is a college level physics course that is fun, interesting and challenging on a level you ve not yet experienced. This summer assignment will

More information

LAB 2: Orthogonal Projections, the Four Fundamental Subspaces, QR Factorization, and Inconsistent Linear Systems

LAB 2: Orthogonal Projections, the Four Fundamental Subspaces, QR Factorization, and Inconsistent Linear Systems Math 550A MATLAB Assignment #2 1 Revised 8/14/10 LAB 2: Orthogonal Projections, the Four Fundamental Subspaces, QR Factorization, and Inconsistent Linear Systems In this lab you will use Matlab to study

More information

SECTION 2: VECTORS AND MATRICES. ENGR 112 Introduction to Engineering Computing

SECTION 2: VECTORS AND MATRICES. ENGR 112 Introduction to Engineering Computing SECTION 2: VECTORS AND MATRICES ENGR 112 Introduction to Engineering Computing 2 Vectors and Matrices The MAT in MATLAB 3 MATLAB The MATrix (not MAThematics) LABoratory MATLAB assumes all numeric variables

More information

Lab 1g: Horizontally Forced Pendulum & Chaotic Motion

Lab 1g: Horizontally Forced Pendulum & Chaotic Motion 58:080 Experimental Engineering OBJECTIVE Lab 1g: Horizontally Forced Pendulum & Chaotic Motion The objective of this lab is to study horizontally forced oscillations of a pendulum. This will be done trough

More information

Introduction to Computer Tools and Uncertainties

Introduction to Computer Tools and Uncertainties Experiment 1 Introduction to Computer Tools and Uncertainties 1.1 Objectives To become familiar with the computer programs and utilities that will be used throughout the semester. To become familiar with

More information

Lab 11 Simple Harmonic Motion A study of the kind of motion that results from the force applied to an object by a spring

Lab 11 Simple Harmonic Motion A study of the kind of motion that results from the force applied to an object by a spring Lab 11 Simple Harmonic Motion A study of the kind of motion that results from the force applied to an object by a spring Print Your Name Print Your Partners' Names Instructions April 20, 2016 Before lab,

More information