Matlab Sheet 3. Plotting in Matlab

Similar documents
Matlab Sheet 3 - Solution. Plotting in Matlab

Section 3.7: Mechanical and Electrical Vibrations

CMPT 889: Lecture 2 Sinusoids, Complex Exponentials, Spectrum Representation

Sinusoids. Amplitude and Magnitude. Phase and Period. CMPT 889: Lecture 2 Sinusoids, Complex Exponentials, Spectrum Representation

Physics 41 HW Set 1 Chapter 15 Serway 8 th ( 7 th )

Date: 1 April (1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

Lecture XXVI. Morris Swartz Dept. of Physics and Astronomy Johns Hopkins University November 5, 2003

Date: 31 March (1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

2.3 Oscillation. The harmonic oscillator equation is the differential equation. d 2 y dt 2 r y (r > 0). Its solutions have the form

Oscillations. PHYS 101 Previous Exam Problems CHAPTER. Simple harmonic motion Mass-spring system Energy in SHM Pendulums

Introduction to Differential Equations

MATH 23 Exam 2 Review Solutions

MATH 251 Week 6 Not collected, however you are encouraged to approach all problems to prepare for exam

Section 4.9; Section 5.6. June 30, Free Mechanical Vibrations/Couple Mass-Spring System

AP Physics C Summer Homework. Questions labeled in [brackets] are required only for students who have completed AP Calculus AB

1. (10 points) Find the general solution to the following second-order differential equation:

PHYSICS ADMISSIONS TEST Thursday, 2 November Time allowed: 2 hours

Chapter One Introduction to Oscillations

x gm 250 L 25 L min y gm min

Sample Questions Exam II, FS2009 Paulette Saab Calculators are neither needed nor allowed.

α(t) = ω 2 θ (t) κ I ω = g L L g T = 2π mgh rot com I rot

Chapter 15 Oscillations

4.9 Free Mechanical Vibrations

MATH 2053 Calculus I Review for the Final Exam

Spring 2015 Sample Final Exam

APPLICATIONS OF DERIVATIVES UNIT PROBLEM SETS

Applications of Second-Order Differential Equations

MA26600 FINAL EXAM INSTRUCTIONS December 13, You must use a #2 pencil on the mark sense sheet (answer sheet).

1) SIMPLE HARMONIC MOTION/OSCILLATIONS

Simple Harmonic Motion

A B = AB cos θ = 100. = 6t. a(t) = d2 r(t) a(t = 2) = 12 ĵ

Chapter 16 Waves. Types of waves Mechanical waves. Electromagnetic waves. Matter waves

Chapter 14 (Oscillations) Key concept: Downloaded from

Traveling Harmonic Waves

Waves Part 1: Travelling Waves

UNIVERSITY OF BOLTON WESTERN INTERNATIONAL COLLEGE FZE BENG(HONS) MECHANICAL ENGINEERING SEMESTER TWO EXAMINATION 2016/2017 ENGINEERING PRINCIPLES 2

Matlab Sheet 2. Arrays

Differential Equations and Linear Algebra Exercises. Department of Mathematics, Heriot-Watt University, Edinburgh EH14 4AS

Important because SHM is a good model to describe vibrations of a guitar string, vibrations of atoms in molecules, etc.

Oscillatory Motion and Wave Motion

4.5. Applications of Trigonometry to Waves. Introduction. Prerequisites. Learning Outcomes

Practice problems from old exams for math 132 William H. Meeks III

1. [30] Y&F a) Assuming a small angle displacement θ max < 0.1 rad, the period is very nearly

Math 308 Week 8 Solutions

Good Vibes: Introduction to Oscillations

Final Exam Spring 2014 May 05, 2014

Vibrations and Waves MP205, Assignment 4 Solutions

dx n a 1(x) dy

Week 9 solutions. k = mg/l = /5 = 3920 g/s 2. 20u + 400u u = 0,

Example force problems

DRAFT - Math 101 Lecture Note - Dr. Said Algarni

Waves Part 3A: Standing Waves

Dynamic Modeling. For the mechanical translational system shown in Figure 1, determine a set of first order

No Lecture on Wed. But, there is a lecture on Thursday, at your normal recitation time, so please be sure to come!

Physics with Matlab and Mathematica Exercise #1 28 Aug 2012

EDEXCEL NATIONAL CERTIFICATE UNIT 28 FURTHER MATHEMATICS FOR TECHNICIANS OUTCOME 3 TUTORIAL 1 - TRIGONOMETRICAL GRAPHS

RED. Physics 105 Final Exam Hess Colton CID NO TIME LIMIT. CLOSED BOOK/NOTES. 1 m 3 = 1000 L stress = F/A; strain = L/L. g=9.

Thursday, August 4, 2011

spring mass equilibrium position +v max

2.4 Models of Oscillation

MATH2351 Introduction to Ordinary Differential Equations, Fall Hints to Week 07 Worksheet: Mechanical Vibrations

Practice Questions From Calculus II. 0. State the following calculus rules (these are many of the key rules from Test 1 topics).

Sample paper 1. Question 1. What is the dimensional formula of torque? A. MLT -2 B. MT -2 C. ML 2 T -2 D. MLT -1 E. ML 3 T -2.

MATH1910Chapter2TestReview

UNIVERSITY OF HOUSTON HIGH SCHOOL MATHEMATICS CONTEST Spring 2018 Calculus Test

Chapter 16 Solutions

1 Oscillations MEI Conference 2009

Physics 2101 S c e t c i cti n o 3 n 3 March 31st Announcements: Quiz today about Ch. 14 Class Website:

F = ma, F R + F S = mx.

Math 147 Exam II Practice Problems

Multiple Choice Answers. MA 114 Calculus II Spring 2013 Final Exam 1 May Question

8 Example 1: The van der Pol oscillator (Strogatz Chapter 7)

Engineering Science OUTCOME 2 - TUTORIAL 3 FREE VIBRATIONS

Math Exam 02 Review

PHYS 1303 Final Exam Example Questions

UNIVERSITY OF WATERLOO FINAL EXAMINATION FALL TERM 2005

MA 266 Review Topics - Exam # 2 (updated)

2. Determine whether the following pair of functions are linearly dependent, or linearly independent:

QUESTION 1: Find the derivatives of the following functions. DO NOT TRY TO SIMPLIFY.

Physics 6B. Practice Midterm #1 Solutions

Practice Final Exam Solutions

Physics 6b Winter 2015 Final Campagnari Section Test Form D

Physics 6b Winter 2015 Final Campagnari Section Test Form A

Chapter 5. Section 5.1. Section ( x ) ( y ) 7. ( x ) ( y ) (0, 3 + 5) and (0, 3 5)

Afternoon Section. Physics 1210 Exam 2 November 8, ! v = d! r dt. a avg. = v2. ) T 2! w = m g! f s. = v at v 2 1.

Chapter 13 Solutions

Graded and supplementary homework, Math 2584, Section 4, Fall 2017

4. Complex Oscillations

Honors Differential Equations

2.4 Harmonic Oscillator Models

Physics 121H Fall Homework #15 23-November-2015 Due Date : 2-December-2015

NARAYANA JUNIOR COLLEGE

Undamped Free Vibrations (Simple Harmonic Motion; SHM also called Simple Harmonic Oscillator)

1.1. BASIC ANTI-DIFFERENTIATION 21 + C.

Stress Analysis Lecture 3 ME 276 Spring Dr./ Ahmed Mohamed Nagib Elmekawy

Virginia Tech Math 1226 : Past CTE problems

Physics 207 Lecture 25. Lecture 25. HW11, Due Tuesday, May 6 th For Thursday, read through all of Chapter 18. Angular Momentum Exercise

What is a wave? Waves

Volumes of Solids of Revolution Lecture #6 a

Exam 2 Spring 2014

Transcription:

Matlab Sheet 3 Plotting in Matlab 1. a. Estimate the roots of the following equation by plotting the equation. x 3 3x 2 + 5x sin ( πx 4 5π 4 ) + 3 = 0 b. Use the estimates found in part a to find the roots more accurately with the fzero function. 2. Plot columns 2 and 3 of the following matrix A versus column 1. The data in column 1 are time (seconds). The data in columns 2 and 3 are force (newtons). 3. Many applications use the following small angle approximation for the sine to obtain a simpler model that is easy to understand and analyze. This approximation states that sin x x, where x must be in radians. Investigate the accuracy of this approximation by creating three plots. For the first, plot sin x and x versus x for 0 x 1. For the second, plot the approximation error sin x - x versus x for 0 x 1. For the third, plot the relative error [sin(x) - x]/sin(x) versus x for 0 x 1. How small must x be for the approximation to be accurate within 5 percent? 4. You can use trigonometric identities to simplify the equations that appear in many applications. Confirm the identity tan(2x) = 2 tan x/(1 - tan 2 x) by plotting both the left and the right sides versus x over the range 0 x 2π. Dr./ Ahmed Nagib Elmekawy 1 of 6 Matlab Sheet 3

5. The following functions describe the oscillations in electric circuits and the vibrations of machines and structures. Plot these functions on the same plot. Because they are similar, decide how best to plot and label them to avoid confusion. x(t) = 10 e 0.5t sin(3t + 2) y(t) = 7 e 0.4t cos(5t 3) 6. In certain kinds of structural vibrations, a periodic force acting on the structure will cause the vibration amplitude to repeatedly increase and decrease with time. This phenomenon, called beating, also occurs in musical sounds. A particular structure s displacement is described by y(t) = 1 f 1 2 f 2 2 [cos(f 2t) cos(f 1 t)] where y is the displacement in mm and t is the time in seconds. Plot y versus t over the range 0 t 20 for f 1 = 8 rad/sec andf 2 = 1 rad/sec. Be sure to choose enough points to obtain an accurate plot. 7. Oscillations in mechanical structures and electric circuits can often be t τ y(t) = e sin(ωt + φ) where t is time and ω is the oscillation frequency in radians per unit time. The oscillations have a period of 2π/ω, and their amplitudes decay in time at a rate determined by τ, which is called the time constant. The smaller τ is, the faster the oscillations die out. a. Use these facts to develop a criterion for choosing the spacing of the t values and the upper limit on t to obtain an accurate plot of y(t). (Hint: Consider two cases: 4τ > 2π ω and 4τ < 2π ω) b. Apply your criterion, and plot y(t) for τ = 10, ω = π and φ = 2. c. Apply your criterion, and plot y(t) for τ = 0.1, ω = π and φ = 2. Dr./ Ahmed Nagib Elmekawy 2 of 6 Matlab Sheet 3

8. The vibrations of the body of a helicopter due to the periodic force applied by the rotation of the rotor can be modeled by a frictionless spring-mass-damper system subjected to an external periodic force. The position x(t) of the mass is given by the equation: x(t) = 2f o ω 3 n ω 3 sin (ω n ω 2 t) sin ( ω n + ω 2 where F(t) = F 0 sin ωt, and f 0 = F 0 /m, ω is the frequency of the applied force, and ω n is the natural frequency of the helicopter. When the value of ω is close to the value of ω n, the vibration consists of fast oscillation with slowly changing amplitude called beat. Use f 0 = 12 N/kg, ω n =10 rad/s, and ω=12 rad/s to plot x(t) as a function of t for 0 t 10 s. t) 9. A railroad bumper is designed to slow down a rapidly moving railroad car. After a 20,000 kg railroad car traveling at 20 m/s engages the bumper, its displacement x (in meters) and velocity v (in m/s) as a function of time t (in seconds) is given by: Plot the displacement and the velocity as a function of time for 0 t 4 s. Make two plots on one page. Dr./ Ahmed Nagib Elmekawy 3 of 6 Matlab Sheet 3

10. The curvilinear motion of a particle is defined by the following parametric equations: The velocity of the particle is given by, where v x = dx dt and v y = dy dt. x = 52t 9t 2 m and y = 125t 5t 2 m v = v x 2 + v y 2 For 0 t 5 s make one plot that shows the position of the particle (y versus x), and a second plot (on the same page) of the velocity of the particle as a function of time. In addition, by using MATLAB s min function, determine the time at which the velocity is the lowest, and the corresponding position of the particle. Using an asterisk marker, show the position of the particle in the first plot. For time use a vector with spacing of 0.1 s. 11. The demand for water during a fire is often the most important factor in the design of distribution storage tanks and pumps. For communities with populations less than 200,000, the demand Q (in gallons/min) can be calculated by: where P is the population in thousands. Plot the water demand Q as a function of the population P (in thousands) for 0 P 200. Label the axes and provide a title for the plot. Dr./ Ahmed Nagib Elmekawy 4 of 6 Matlab Sheet 3

12. A In a typical tension test a dog bone shaped specimen is pulled in a machine. During the test, the force F needed to pull the specimen and the length L of a gauge section are measured. This data is used for plotting a stress-strain diagram of the material. Two definitions, engineering and true, exist for stress and strain. The engineering stress and strain are defined by σ e = F A 0 and ε e = L L o L o where L o and A o are the initial gauge length and the initial cross-sectional area of the specimen, respectively. The true stress σ t and strain ε t are defined by σ t = F and ε A 0 L t = ln L. o L o L The following are measurements of force and gauge length from a tension test with an aluminum specimen. The specimen has a round cross section with radius 6.4 mm (before the test). The initial gauge length is L o =25 mm. Use the data to calculate and generate the engineering and true stress-strain curves, both on the same plot. Label the axes and use a legend to identify the curves. Units: When the force is measured in newtons (N) and the area is calculated in m 2, the unit of the stress is pascals (Pa). Dr./ Ahmed Nagib Elmekawy 5 of 6 Matlab Sheet 3

13. The shape of a symmetrical four-digit NACA airfoil is described by the equation where c is the cord length and t is the maximum thickness as a fraction of the cord length ( tc= maximum thickness). Symmetrical four-digit NACA airfoils are designated NACA 00XX, where XX is 100t (i.e., NACA 0012 has t=0.12 ). Plot the shape of a NACA 0020 airfoil with a cord length of 1.5 m. 14. The position as a function of time of a squirrel running on a grass field is given in polar coordinates by: Plot the trajectory (position) of the squirrel for 0 t 20 s. 15. Obtain the surface and contour plots for the function showing the minimum at x = y =0. z = x 2 2xy + 4y 2 16. A square metal plate is heated to 80 C at the corner corresponding to x = y =1. The temperature distribution in the plate is described by T = 80 e (x 1)2 e 3(y 1)2 Obtain the surface and contour plots for the temperature. Label each axis. What is the temperature at the corner corresponding to x = y =0? Dr./ Ahmed Nagib Elmekawy 6 of 6 Matlab Sheet 3