Presentation is loading. Please wait.

Presentation is loading. Please wait.

EGR 115 Introduction to Computing for Engineers MATLAB Basics 5: Applications – Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers.

Similar presentations


Presentation on theme: "EGR 115 Introduction to Computing for Engineers MATLAB Basics 5: Applications – Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers."— Presentation transcript:

1 EGR 115 Introduction to Computing for Engineers MATLAB Basics 5: Applications – Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers

2 Lecture Outline Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers MATLAB Applications  Vector math  Simultaneous Eqns Slide 2 of 11

3 MATLAB basics Applications: Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers A vector has both magnitude (i.e., length) and direction  E.g., Velocity is a vector and speed is a scalar In a Cartesian coordinate system one can define a vector in terms of the line between two points  Must define which is the start and which is the end Slide 3 of 11

4 What is the direction of V? MATLAB basics Applications: Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers Slide 4 of 11 6 5 What is the magnitude of V? V

5 MATLAB basics Applications: Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers Slide 5 of 11 What can you say about the two vectors (i.e., V and U)? Magnitude? Direction? What can you say about the two vectors (i.e., V and U)? Magnitude? Direction? V U

6 MATLAB basics Applications: Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers Slide 6 of 11 6 5 7 What is the magnitude of V? V

7 MATLAB basics Applications: Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers Vector Addition & Subtraction  Element by element addition/subtraction Vector Multiplication  Dot product: Slide 7 of 11 A scalar!!! A Geometric interpretation?  35 

8 MATLAB basics Applications: Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers Vector Multiplication  Cross product: Slide 8 of 11 A Geometric interpretation? What is a  (axb)?

9 MATLAB basics Applications: Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers Slide 9 of 11

10 MATLAB basics Applications: Simultaneous Equations Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers Given the simultaneous equations:  We can rewrite the eqns in matrix/vector form as:  Hence, Slide 10 of 11 How can we check our answer?

11 Next Lecture Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers MATLAB Applications  Debugging in MATLAB Slide 11 of 11


Download ppt "EGR 115 Introduction to Computing for Engineers MATLAB Basics 5: Applications – Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers."

Similar presentations


Ads by Google