1. Plotting Graph with Matlab:

Slides:



Advertisements
Similar presentations
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.
Advertisements

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:
Isfahan University of Technology Department of Mechanical Engineering May 7 th 2011 Course Instructor: Dr. S. Ziaei Rad Mode Indicator Functions.
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.
Complex Numbers Stephanie Golmon Principia College Laser Teaching Center, Stony Brook University June 27, 2006.
Out response, Poles, and Zeros
Sinusoids & Phasors. A sinusoidal current is usually referred to as alternating current (ac). Circuits driven by sinusoidal current or voltage sources.
Two-Sided or Complex Exponential Form of the Fourier Series
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.
Lecture 21 Review: Second order electrical circuits Series RLC circuit Parallel RLC circuit Second order circuit natural response Sinusoidal signals and.
, Free vibration Eigenvalue equation EIGENVALUE EQUATION
S7-1 SECTION 7 FREQUENCY RESPONSE ANALYSIS. S7-2 INTRODUCTION TO FREQUENCY RESPONSE ANALYSIS n Frequency response analysis is a method used to compute.
COMPLEX NUMBERS and PHASORS. OBJECTIVES  Use a phasor to represent a sine wave.  Illustrate phase relationships of waveforms using phasors.  Explain.
AC Circuit Analysis.
Damped harmonic oscillator
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.
1. Plotting Graph with Matlab:
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
Differential Equations
H(s) 8.b Laplace Transform:
Lesson 20: Process Characteristics- 2nd Order Lag Process
Youngjune, Han Chapter 4 Time Response Youngjune, Han
COMPLEX NUMBERS and PHASORS
1.3 Exponential and Sinusoidal Signals
Periodic Signals Prof. Brian L. Evans
LECTURE #3 Complex Exponentials & Complex Numbers
Signals and Systems, 2/E by Simon Haykin and Barry Van Veen
Time Response Analysis
ECE 3301 General Electrical Engineering
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
© 2014 John Wiley & Sons, Inc. All rights reserved.
Control System Analysis and Design by the Frequency Response Method
ECE 1270: Introduction to Electric Circuits
Sinusoids: continuous time
Equations of Motion: Kinetic energy: Potential energy: Sin≈
1. Plotting Graph with Matlab:
Electric Circuits Fundamentals
Acceleration Changing velocity (non-uniform) means an acceleration is present Acceleration is the rate of change of the velocity Units are m/s² (SI)
8. Solution of Linear Differential Equations
Copyright © Cengage Learning. All rights reserved.
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.
CONTINUOUS-TIME SINUSOIDAL SIGNALS
(x(t) depends on the initial conditions)
UNIT-II TIME RESPONSE ANALYSIS
Frequency Response Techniques
Complex numbers/phasors and amplitudes
Signal Processing First
Nuclear Magnetic Resonance
Applied Electromagnetic Waves
7-5 Relative Stability.
Chapter 4. Time Response I may not have gone where I intended to go, but I think I have ended up where I needed to be. Pusan National University Intelligent.
1. Plotting Graph with Matlab:
Graphing Exponential Functions
1.
Lecture 5A: Operations on the Spectrum
Complex Numbers in Engineering (Chapter 5 of Rattan/Klingbeil text)
Aim: How do we explain the motion of a particle attached to a spring?
Frequency Response Techniques
1. Plotting Graph with Matlab:
(x(t) depends on the initial conditions)
Presentation transcript:

1. Plotting Graph with Matlab: Exponential-Harmonic Function: Exponential-Harmonic functions are 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 cycle, 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.

Euler formula: Im θ θ Re Imaginary part (Im) Real part (Re) cos(eiθ) sin(eiθ) eiθ θ 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 plane with its real and imaginary parts.

p=-σ+iω. The magnitude of p is ω0 Im p iω Re -σ The rate of decay in the function f(t) is determined by the damping ratio ξ. If α=0o then ω=0 and ξ=1. It means that there is no oscillation and f(t) is a decaying exponential function. If α=90o 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 adjacent function points, and the other one is the settling 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(t). p=-0.2+3i Im 3i w0 -0.2 α Re Plotting of f(t) with Matlab clc;clear; t=0:0.1045:31.43; f=2.5*exp(-0.2*t).*cos(3*t-1.8); plot(t,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 matrix dimensions must agree C=A.*B =[6 12 48 56] Δt=0.4 Details of f(t) are not seen if Δt is not chosen properly.

Exponential Function: 5 3 The decay ratio increases as the time constant decreases. x(t)

Problem 1.2: Plot the graph of f(t). Always positive Matlab Code: clc;clear; t=0:0.5:9.8; f=4.20*exp(-0.64*t); plot(t,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)