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”)
By: Nafees Ahmed Asstt. Prof., EE Deptt, DIT, Dehradun
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.
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
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
COMPLEX NUMBERS and PHASORS. OBJECTIVES  Use a phasor to represent a sine wave.  Illustrate phase relationships of waveforms using phasors.  Explain.
AC Circuit Analysis.
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.
Chapter 9 Sinusoidal Steady-State Analysis
Differential Equations
ECEN3713 Network Analysis Lecture #15 15 February 2016 Dr
Alexander-Sadiku Fundamentals of Electric Circuits
H(s) 8.b Laplace Transform:
Mechatronics Engineering
Youngjune, Han Chapter 4 Time Response Youngjune, Han
10. Harmonic oscillator Simple harmonic motion
COMPLEX NUMBERS and PHASORS
1.3 Exponential and Sinusoidal Signals
Periodic Signals Prof. Brian L. Evans
Reference: Croft & Davision, Chapter 6 p.125
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
Control System Analysis and Design by the Frequency Response Method
ECE 1270: Introduction to Electric Circuits
Sinusoids: continuous time
Math Review CS474/674 – Prof. Bebis.
Equations of Motion: Kinetic energy: Potential energy: Sin≈
1. Plotting Graph with Matlab:
8. Solution of Linear Differential Equations
ELL100: INTRODUCTION TO ELECTRICAL ENGG.
Frequency Response Analysis
Digital Control Systems (DCS)
CONTINUOUS-TIME SINUSOIDAL SIGNALS
University Physics: Waves and Electricity
Chapter 2 Complex Numbers
Equations of Motion: Kinetic energy: Potential energy: Sin≈
Simpson’s Rule: Example: Calculate the integral of the given function.
4. Closed-Loop Responses Using the Laplace Transform Method
Nuclear Magnetic Resonance
دکتر حسين بلندي- دکتر سید مجید اسما عیل زاده
Lecture 5: Sampling of Continuous-Time Sinusoids Sections 1.6
Applied Electromagnetic Waves
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
Newton-Raphson Example 4:
Lecture 5A: Operations on the Spectrum
10.3 Graphing Exponential Functions
o Problem Reconsider Problem
Complex Numbers in Engineering (Chapter 5 of Rattan/Klingbeil text)
Frequency Response Analysis
1. Plotting Graph with Matlab:
Newton-Raphson Example 4:
Newton-Raphson Example 4:
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 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.

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 plane 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 matrix 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)