1. Plotting Graph with Matlab:

Slides:



Advertisements
Similar presentations
Chapter 14.
Advertisements

Complex Representation of Harmonic Oscillations. The imaginary number i is defined by i 2 = -1. Any complex number can be written as z = x + i y where.
Complex Numbers in Engineering (Chapter 5 of Rattan/Klingbeil text)
Transition between real sinusoidal signals (“time domain”)
Each of the circuit elements will have a different ac current response to an applied ac voltage. We need to look at each of these elements. Resistor:
Introduction to MATLAB for Biomedical Engineering BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Lesson 2: Element-wise vs. matrix operations.
Design with Root Locus Lecture 9.
Lab5 (Signal & System) Instructor: Anan Osothsilp Date: 20 Feb 07 Due Date 09 March 07.
Math Review with Matlab:
Isfahan University of Technology Department of Mechanical Engineering May 7 th 2011 Course Instructor: Dr. S. Ziaei Rad Mode Indicator Functions.
CHE 185 – PROCESS CONTROL AND DYNAMICS
8. Solution of Linear Differential Equations Example 8.1 f(t) : Input u(t) : Response s 3 H(s)e st +4s 2 H(s)e st +14sH(s)e st +20H(s)e st =3e st +se st.
CHAPTER 4: HARMONIC RESPONSE WITH A SINGLE DEGREE OF FREEDOM
We have been using voltage sources that send out a current in a single direction called direct current (dc). Current does not have to flow continuously.
Graphing Exponential Functions
Chapter 13 Simple Harmonic Motion In chapter 13 we will study a special type of motion known as: simple harmonic motion (SHM). It is defined as the motion.
Complex Numbers Stephanie Golmon Principia College Laser Teaching Center, Stony Brook University June 27, 2006.
Out response, Poles, and Zeros
Continuous Time Signals
Complex eigenvalues SECTION 3.4
Waves - I Chapter 16 Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Lecture 18 Chapter 12 Matrices continued. Outline from Chapter Matrix Operations Matrix Multiplication Matrix Division
Sinusoids & Phasors. A sinusoidal current is usually referred to as alternating current (ac). Circuits driven by sinusoidal current or voltage sources.
Fourier series. The frequency domain It is sometimes preferable to work in the frequency domain rather than time –Some mathematical operations are easier.
Two-Sided or Complex Exponential Form of the Fourier Series
Chapter 13 1 Frequency Response Analysis Sinusoidal Forcing of a First-Order Process For a first-order transfer function with gain K and time constant,
Oscillations and Waves Topic 4.1 Kinematics of simple harmonic motion (SHM)
Complex Numbers. 1 August 2006 Slide 2 Definition A complex number z is a number of the form where x is the real part and y the imaginary part, written.
1 Chapter 5 Sinusoidal Input. 2 Chapter 5 Examples: 1.24 hour variations in cooling water temperature Hz electrical noise (in USA!) Processes are.
Lecture 21 Review: Second order electrical circuits Series RLC circuit Parallel RLC circuit Second order circuit natural response Sinusoidal signals and.
Signals and Systems 1 Lecture 3 Dr. Ali. A. Jalali August 23, 2002.
Waves - I Chapter 16 Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Copyright © 2015, 2008, 2011 Pearson Education, Inc. Section 4.3, Slide 1 Chapter 4 Exponential Functions.
, Free vibration Eigenvalue equation EIGENVALUE EQUATION
Modeling Transient Response So far our analysis has been purely kinematic: The transient response has been ignored The inertia, damping, and elasticity.
COMPLEX NUMBERS and PHASORS. OBJECTIVES  Use a phasor to represent a sine wave.  Illustrate phase relationships of waveforms using phasors.  Explain.
AC Circuit Analysis.
Exponential Functions 4.3 **You might want graph paper**
Oscillations. Periodic Motion Periodic motion is motion of an object that regularly returns to a given position after a fixed time interval A special.
Damped harmonic oscillator
State Space Models The state space model represents a physical system as n first order differential equations. This form is better suited for computer.
Lecture 6 (II) COMPLEX NUMBERS and PHASORS. OBJECTIVES A.Use a phasor to represent a sine wave. B.Illustrate phase relationships of waveforms using phasors.
Chapter 2. READING ASSIGNMENTS This Lecture: Chapter 2, pp Appendix A: Complex Numbers Appendix B: MATLAB or Labview Chapter 1: Introduction.
System Dynamics Dr. Mohammad Kilani
COMPLEX NUMBERS and PHASORS
LECTURE #3 Complex Exponentials & Complex Numbers
1. Plotting Graph with Matlab:
Equations of Motion: Kinetic energy: Potential energy: Sin≈
Mechatronics Engineering
6. Nyquist Diagram, Bode Diagram, Gain Margin, Phase Margin,
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Theoretical Mechanics DYNAMICS
ECE 1270: Introduction to Electric Circuits
Sinusoids: continuous time
Equations of Motion: Kinetic energy: Potential energy: Sin≈
1. Plotting Graph with Matlab:
1. Plotting Graph with Matlab:
8. Solution of Linear Differential Equations
Example: Obtain the equation of motion of the mechanical system given below. Write the form of the output θ(t) in case of free vibration and determine.
Frequency Response Analysis
CONTINUOUS-TIME SINUSOIDAL SIGNALS
Chapter 2 Complex Numbers
Equations of Motion: Kinetic energy: Potential energy: Sin≈
1. Plotting Graph with Matlab:
Graphing Exponential Functions
Lecture 5A: Operations on the Spectrum
10.3 Graphing Exponential Functions
Complex Numbers in Engineering (Chapter 5 of Rattan/Klingbeil text)
Frequency Response Analysis
1. Plotting Graph with Matlab:
Presentation transcript:

1. Plotting Graph with Matlab: Exponential-Harmonic Function: Exponential-Harmonic functions are functions commonly encountered in engineering applications as the form of excitation or response. The general form of an exponential-harmonic function includes amplitude A, damping term σ, which determines the rate of decay, frequency of oscillation ω and phase angle φ. T: Duration for one loop, Period (s) Amplitude Damping Frequency (rad/s) Phase angle ω= Angular frequency (rad/s) f : Frequency (Hz)

Red curve is exponential term Black curve is harmonic term Blue curve is function f(t) Phase angle φ represents the shift in x axis. Negative phase angle means shift to the right, positive phase angle means shift to the left.

We can rearrange f(t) using Euler formula Real part (Re) Imaginary part (Im) We can rearrange f(t) using Euler formula Where C=Aeiφ and p=-σ+iω. p is a complex number and it can be shown in complex plain with its real and imaginary parts. The magnitude of p is ω0 iω -σ p Im Re The rate of decay in the function f(t) is determined by the damping ratio ξ. If α=0º then ω=0 and ξ=1. It means that there is no oscillation and f(t) is a decaying exponential function. If α=90º then σ=0 and ξ=0. It means that there is no exponential decay and function f(t) is an harmonic function. The rate of decay is determined by the damping ratio ξ. The damping ratio is calculated as

Effect of damping ratio. There are two important time values in plotting functions. One of them is the time increment Δt, which is the interval between two adjaent function points, and the other one is the end time ts, at which the function reaches its final value (the value of function does not change as the time increases). These two time values can be calculated by using period T0 and damping ratio ξ. 1 0.2 0.5 ξ=0.1 t x(t) A=1, ω0=1 rad/s Effect of damping ratio.

Problem 1.1: Plot the graph of function f(x) As seen from the function, the independent variable is a coordinate. But, the soluton method is the same. p=-0.2+3i Im 3i k0 -0.2 α Re Plotting of f(x) with Matlab clc;clear; x=0:0.1045:31.43; f=2.5*exp(-0.2*x).*cos(3*x-1.8); plot(x,f) Dot product

Dot product should be used to multiply the corresponding elements of two vectors. A=[1 4 6 8], B=[6 3 8 7] A is 1x4 vector and B is 1x4 vector. * means matrix multiplication. C=A*B Error: inner mattrix dimensions must agree C=A.*B =[6 12 48 56] Δx=0.4 Details of f(x) are not seen if Δx is not choosen properly.

Exponential Function: 5 3 The decay ratio increases as the time constant decreases. Problem 1.2: Plot the graph of f(x). x(t) Always positive Matlab Code: clc;clear; x=0:0.5:9.8; f=4.20*exp(-0.64*x); plot(x,f)

Problem 1.3: Plot the graph of f(t). p ξ ∆t ts -7+ 5i 0.81 0.0365 0.9 -3+10i 0.29 0.0301 2.94 -0.5 - 0.64 12.56 Important! Use smallest Δt and greatest ts. Matlab Code: clc;clear; t=0:0.0301:12.56; f=3*exp(-7*t).*cos(5*t+1.9)-2*exp(-3*t).*cos(10*t-2.3)+3*exp(-0.5*t); plot(t,f)

Summation of Harmonic Functions: Periodic Function Problem 1.4: ξ=0 and then ts=T0 Plot each part of function f(t) seperately and plot f(t).

f(t) clc;clear; t=0:0.0035:2.093; x1=2*cos(3*t-1.7); subplot(2,2,1);plot(t,x1) subplot(2,2,2);plot(t,x2) subplot(2,2,3);plot(t,x3) x=x1+x2+x3; subplot(2,2,4);plot(t,x) pause x=[x,x,x]; close figure(1) plot (x) f(t) 4cos(6t+2.1) 3.2cos(9t-0.65)