Lecture 1 Matlab Exercise

Slides:



Advertisements
Similar presentations
Section 1.4 Complex Numbers
Advertisements

Solving Differential Equations BIOE Solving Differential Equations Ex. Shock absorber with rigid massless tire Start with no input r(t)=0, assume.
Homework Quiz 1. List all possible rational zeros for the function f(x)=x 3 -4x 2 -4x Find all real solutions of the polynomial equation. Solve algebraically.
2.4 Complex Numbers What is an imaginary number What is a complex number How to add complex numbers How to subtract complex numbers How to multiply complex.
Key Points Two complex numbers can be multiplied by expressing each number in the form z = x + jy, then using distributivity and the rule j2 = -1 (i.e.,
Root Locus Analysis (1) Hany Ferdinando Dept. of Electrical Eng. Petra Christian University.
Lecture 2 Matlab Exercise Presenter : Lee-Kang Lester Liu Instructor : Prof. Truong Nguyen.
Complex Numbers.
Chapter 2 Discrete-time signals and systems
Ch.4 Fourier Analysis of Discrete-Time Signals
EE-2027 SaS, L13 1/13 Lecture 13: Inverse Laplace Transform 5 Laplace transform (3 lectures): Laplace transform as Fourier transform with convergence factor.
Lecture 17. System Response II
ECEN5807, Spring 2009 Lecture 8 1.How the correction factor changes a transfer function 2.SEPIC example: the correction factor at low, intermediate, and.
EE-2027 SaS, L18 1/12 Lecture 18: Discrete-Time Transfer Functions 7 Transfer Function of a Discrete-Time Systems (2 lectures): Impulse sampler, Laplace.
Lecture 211 EEE 302 Electrical Networks II Dr. Keith E. Holbert Summer 2001.
Discrete Time Periodic Signals A discrete time signal x[n] is periodic with period N if and only if for all n. Definition: Meaning: a periodic signal keeps.
Imaginary and Complex Numbers. The imaginary number i is the square root of -1: Example: Evaluate i 2 Imaginary Numbers.
FOIL FOIL FOIL FOIL FOIL FOIL The Sum of the Roots Times The Product of the Roots.
The Complex Numbers The ratio of the length of a diagonal of a square to the length of a side cannot be represented as the quotient of two integers.
ECEN3714 Network Analysis Lecture #9 2 February 2015 Dr. George Scheets n Read 13.8 n Problems: 13.16a, 19a,
1 The Fourier Series for Discrete- Time Signals Suppose that we are given a periodic sequence with period N. The Fourier series representation for x[n]
Lesson 2.4 Read: Pages Page 137: #1-73 (EOO)
5.6 Quadratic Equations and Complex Numbers
4.6 Perform Operations With Complex Numbers. Vocabulary: Imaginary unit “i”: defined as i = √-1 : i 2 = -1 Imaginary unit is used to solve problems that.
2.4 Complex Numbers Students will use the imaginary unit i to write complex numbers. Students will add, subtract, and multiply complex numbers. Students.
MatLAB Transfer Functions, Bode Plots, and Complex Numbers.
Lesson 2.1, page 266 Complex Numbers Objective: To add, subtract, multiply, or divide complex numbers.
1 More General Transfer Function Models Chapter 6 Poles and Zeros: The dynamic behavior of a transfer function model can be characterized by the numerical.
11.4 Roots of Complex Numbers
Lecture 18: Root Locus Basics
Modern Control System EKT 308 Root Locus Method (contd…)
Chapter 2 Section 4 Complex Numbers.
SAT Problem of the Day. 5.6 Quadratic Equations and Complex Numbers 5.6 Quadratic Equations and Complex Numbers Objectives: Classify and find all roots.
Warm-Up Use the quadratic formula to solve each equation. 6 minutes 1) x x + 35 = 02) x = 18x 3) x 2 + 4x – 9 = 04) 2x 2 = 5x + 9.
5. Root-LocusKuo-91 (p.428) Example 5.1 )s(R Locations of the roots on the complex plane (s plane) Poles : D 1 (s)=0 Zeros: N 1 (s)=0 Number of branches.
Prof. Wahied Gharieb Ali Abdelaal
Chapter – 6.5 Vectors.
 Write the expression as a complex number in standard form.  1.) (9 + 8i) + (8 – 9i)  2.) (-1 + i) – (7 – 5i)  3.) (8 – 5i) – ( i) Warm Up.
2.2 The Complex Plane Objective: to find the magnitude and argument of a complex number.
Aim: What is the complex number? Do Now: Solve for x: 1. x 2 – 1 = 0 2. x = 0 3. (x + 1) 2 = – 4 Homework: p.208 # 6,8,12,14,16,44,46,50.
6.6 – Complex Numbers Complex Number System: This system of numbers consists of the set of real numbers and the set of imaginary numbers. Imaginary Unit:
Multiply Simplify Write the expression as a complex number.
Lecture 11/12 Analysis and design in the time domain using root locus North China Electric Power University Sun Hairong.
Algebra 2. Solve for x Algebra 2 (KEEP IN MIND THAT A COMPLEX NUMBER CAN BE REAL IF THE IMAGINARY PART OF THE COMPLEX ROOT IS ZERO!) Lesson 6-6 The Fundamental.
Complex Numbers We haven’t been allowed to take the square root of a negative number, but there is a way: Define the imaginary number For example,
Natural Numbers Where do the natural numbers start? 1 Write them in set notation {1, 2, 3,... }
Lecture 7: Z-Transform Remember the Laplace transform? This is the same thing but for discrete-time signals! Definition: z is a complex variable: imaginary.
The Z-Transform.
Chapter 2 – Polynomial and Rational Functions
Digital Signal Processing Lecture 4 DTFT
Roots and Zeros 5.7.
Lecture 19: Root Locus Continued
The Fundamental Theorem of Algebra
Complex Numbers.
Complex Numbers Imaginary Numbers Vectors Complex Numbers
Conjugates & Absolute Value & 14
5.6 Complex Numbers.
Section 2.1 Complex Numbers
Section 1.4 Complex Numbers
Root-locus Technique for Control Design
Root-Locus Analysis (1)
#31 He was seized by the fidgets,
More General Transfer Function Models
Frequency Response Method
Figure Contributions of characteristic equation roots to closed-loop response.
Root-Locus Analysis (2)
CH. 6 Root Locus Chapter6. Root Locus.
ERT 210 DYNAMICS AND PROCESS CONTROL CHAPTER 11 – MATLAB TUTORIAL
7.7 Complex Numbers.
Complex Numbers Multiply
Presentation transcript:

Lecture 1 Matlab Exercise Lee-Kang Lester Liu

Problem M2.1 M2.1 : write a Matlab Program to generate the conjugate-symmetric and conjugate-anti-symmetric parts of a finite-length complex sequence.

Problem M2.1 M2.1 : write a Matlab Program to generate the conjugate-symmetric and conjugate-anti-symmetric parts of a finite-length complex sequence. What are conjugate-symmetric and conjugate-anti-symmetric ?

Problem M2.1 M2.1 : write a Matlab Program to generate the conjugate-symmetric and conjugate-anti-symmetric parts of a finite-length complex sequence. What are conjugate-symmetric and conjugate-anti-symmetric ? Conjugate-symmetric : 𝑥 𝑒 𝑛 = 𝑥 𝑒 ∗ −𝑛 Conjugate-anti-symmetric : 𝑥 𝑜 𝑛 = −𝑥 𝑜 ∗ −𝑛 Where * denotes complex conjugate.

Problem M2.1 M2.1 : write a Matlab Program to generate the conjugate-symmetric and conjugate-anti-symmetric parts of a finite-length complex sequence. Any sequence 𝑥 𝑛 can be expressed as a sum of conjugate-symmetric and conjugate-anti-symmetric sequences.

Problem M2.1 M2.1 : write a Matlab Program to generate the conjugate-symmetric and conjugate-anti-symmetric parts of a finite-length complex sequence. Any sequence 𝑥 𝑛 can be expressed as a sum of conjugate-symmetric and conjugate-anti-symmetric sequences. 𝑥 𝑛 = 𝑥 𝑒 𝑛 + 𝑥 𝑜 𝑛

Problem M2.1 M2.1 : write a Matlab Program to generate the conjugate-symmetric and conjugate-anti-symmetric parts of a finite-length complex sequence. Any sequence 𝑥 𝑛 can be expressed as a sum of conjugate-symmetric and conjugate-anti-symmetric sequences. 𝑥 𝑛 = 𝑥 𝑒 𝑛 + 𝑥 𝑜 𝑛 Therefore 𝑥 𝑒 𝑛 = 1 2 𝑥 𝑛 + 𝑥 ∗ −𝑛 = 𝑥 𝑒 ∗ −𝑛 Conjugate-symmetric

Problem M2.1 M2.1 : write a Matlab Program to generate the conjugate-symmetric and conjugate-anti-symmetric parts of a finite-length complex sequence. Any sequence 𝑥 𝑛 can be expressed as a sum of conjugate-symmetric and conjugate-anti-symmetric sequences. 𝑥 𝑛 = 𝑥 𝑒 𝑛 + 𝑥 𝑜 𝑛 Therefore 𝑥 𝑒 𝑛 = 1 2 𝑥 𝑛 + 𝑥 ∗ −𝑛 = 𝑥 𝑒 ∗ −𝑛 Conjugate-symmetric 𝑥 𝑜 𝑛 = 1 2 𝑥 𝑛 − 𝑥 ∗ −𝑛 =− 𝑥 𝑜 ∗ −𝑛 Conjugate-anti-symmetric

Problem M2.1 M2.1 : write a Matlab Program to generate the conjugate-symmetric and conjugate-anti-symmetric parts of a finite-length complex sequence. Matlab Exercise Given x[n] = 2𝛿 𝑛 + 3−𝑖 𝛿 𝑛−1 + 1+𝑖 𝛿 𝑛−2 + 2+5𝑖 𝛿 𝑛−3 + −2+3𝑖 𝛿 𝑛−4 +5𝛿 𝑛−5

Question ?

Problem M2.2 M2.2 : (a) Using program 2_2, generate the sequence shown in Figure 2.23 and 2.24. (b) Generate and plot the complex exponential sequence −2.7 𝑒 −0.4+ 𝑗𝜋 6 𝑛 for 0≤𝑛≤82 using program 2_2.

Problem M2.2(a) M2.2 : (a) Using program 2_2, generate the sequence shown in Figure 2.23 and 2.24. (b) Generate and plot the complex exponential sequence −2.7 𝑒 −0.4+ 𝑗𝜋 6 𝑛 for 0≤𝑛≤82 using program 2_2.

Problem M2.2(a) M2.2 : (a) Using program 2_2, generate the sequence shown in Figure 2.23 and 2.24. (b) Generate and plot the complex exponential sequence −2.7 𝑒 −0.4+ 𝑗𝜋 6 𝑛 for 0≤𝑛≤82 using program 2_2. Index from 0 to 40 A sequence x[n] = 𝑒 −1 12 + 𝑗𝜋 6 𝑛

Problem M2.2(a) M2.2 : (a) Using program 2_2, generate the sequence shown in Figure 2.23 and 2.24. (b) Generate and plot the complex exponential sequence −2.7 𝑒 −0.4+ 𝑗𝜋 6 𝑛 for 0≤𝑛≤82 using program 2_2.

Problem M2.2(a) M2.2 : (a) Using program 2_2, generate the sequence shown in Figure 2.23 and 2.24. (b) Generate and plot the complex exponential sequence −2.7 𝑒 −0.4+ 𝑗𝜋 6 𝑛 for 0≤𝑛≤82 using program 2_2. Index from 0 to 30 𝑥 𝑛 =0.2 1.2 𝑛 3. 𝑥 𝑛 =20 0.9 𝑛

Problem M2.2(b) M2.2 : (a) Using program 2_2, generate the sequence shown in Figure 2.23 and 2.24. (b) Generate and plot the complex exponential sequence −2.7 𝑒 −0.4+ 𝑗𝜋 6 𝑛 for 0≤𝑛≤82 using program 2_2.

Question ?

Problem M2.5 M2.5 : Using Matlab to verify the result of Example 2.15.

Problem M2.5 M2.5 : Using Matlab to verify the result of Example 2.15. Consider three sequence generated by uniformly sampling the three cosine functions of frequencies 3Hz, 7Hz, 13Hz, respectively: 𝑔 1 𝑡 =𝑐𝑜𝑠 6𝜋𝑡 𝑠𝑒𝑐 , 𝑔 2 𝑡 =𝑐𝑜𝑠 14𝜋𝑡 𝑠𝑒𝑐 , 𝑔 3 𝑡 =cos⁡ 26𝜋𝑡 𝑠𝑒𝑐 with sampling rate 𝐹 𝑇 =10𝐻𝑧 , that is , 𝑇=0.1(sec⁡)

Problem M2.5 M2.5 : Using Matlab to verify the result of Example 2.15. Consider three sequence generated by uniformly sampling the three cosine functions of frequencies 3Hz, 7Hz, 13Hz, respectively: 𝑔 1 𝑡 =𝑐𝑜𝑠 6𝜋𝑡 𝑠𝑒𝑐 , 𝑔 2 𝑡 =𝑐𝑜𝑠 14𝜋𝑡 𝑠𝑒𝑐 , 𝑔 3 𝑡 =cos⁡ 26𝜋𝑡 𝑠𝑒𝑐 with sampling rate 𝐹 𝑇 =10𝐻𝑧 , that is , 𝑇=0.1(sec⁡) Using Eq 2.63 and Eq 2.63 𝑥 𝑛 =𝐴𝑐𝑜𝑠 2𝜋 𝑓 0 𝑛𝑇

Problem M2.5 M2.5 : Using Matlab to verify the result of Example 2.15. Consider three sequence generated by uniformly sampling the three cosine functions of frequencies 3Hz, 7Hz, 13Hz, respectively: 𝑔 1 𝑡 =𝑐𝑜𝑠 6𝜋𝑡 𝑠𝑒𝑐 , 𝑔 2 𝑡 =𝑐𝑜𝑠 14𝜋𝑡 𝑠𝑒𝑐 , 𝑔 3 𝑡 =cos⁡ 26𝜋𝑡 𝑠𝑒𝑐 with sampling rate 𝐹 𝑇 =10𝐻𝑧 , that is , 𝑇=0.1(sec⁡) Using Eq 2.63 and Eq 2.63 𝑥 1 𝑛 =𝑐𝑜𝑠 0.6𝜋𝑛+2𝜋𝑘 𝑥 2 𝑛 =𝑐𝑜𝑠 1.4𝜋𝑛+2𝜋𝑘 𝑥 3 𝑛 =𝑐𝑜𝑠 2.6𝜋𝑛+2𝜋𝑘

Problem M2.5 M2.5 : Using Matlab to verify the result of Example 2.15. Consider three sequence generated by uniformly sampling the three cosine functions of frequencies 3Hz, 7Hz, 13Hz, respectively: 𝑔 1 𝑡 =𝑐𝑜𝑠 6𝜋𝑡 𝑠𝑒𝑐 , 𝑔 2 𝑡 =𝑐𝑜𝑠 14𝜋𝑡 𝑠𝑒𝑐 , 𝑔 3 𝑡 =cos⁡ 26𝜋𝑡 𝑠𝑒𝑐 with sampling rate 𝐹 𝑇 =10𝐻𝑧 , that is , 𝑇=0.1(sec⁡) Using Eq 2.63 and Eq 2.63 𝑥 1 𝑛 =𝑐𝑜𝑠 0.6𝜋𝑛+2𝜋𝑘 = cos 0.6𝜋𝑛 where 𝑘=0 𝑥 2 𝑛 =𝑐𝑜𝑠 1.4𝜋𝑛+2𝜋𝑘 =𝑐𝑜𝑠 −0.6𝜋𝑛 where 𝑘=−1 𝑥 3 𝑛 =𝑐𝑜𝑠 2.6𝜋𝑛+2𝜋𝑘 =𝑐𝑜𝑠 0.6𝜋𝑛 where 𝑘=−1

Question ?

Problem M3.1 M3.1 : Determine and plot the real and imaginary parts and the magnitude and phase spectra of the following DTFT for various value of 𝛾 and 𝜃. 𝐺 𝑒 𝑗𝜔 = 1 1−2𝛾 𝑐𝑜𝑠𝜃 𝑒 −𝑗𝜔 + 𝛾 2 𝑒 −2𝑗𝜔 0<𝛾<1

Problem M3.1 M3.1 : Determine and plot the real and imaginary parts and the magnitude and phase spectra of the following DTFT for various value of 𝛾 and 𝜃. 𝐺 𝑒 𝑗𝜔 = 1 1−2𝛾 𝑐𝑜𝑠𝜃 𝑒 −𝑗𝜔 + 𝛾 2 𝑒 −2𝑗𝜔 0<𝛾<1 In z-plane , what are those roots in denominator ? 𝐺 𝑧 = 1 1−2𝛾 𝑐𝑜𝑠𝜃 𝑧 −1 + 𝛾 2 𝑧 −2 0<𝛾<1

Problem M3.1 M3.1 : Determine and plot the real and imaginary parts and the magnitude and phase spectra of the following DTFT for various value of 𝛾 and 𝜃. 𝑧= 2𝛾 𝑐𝑜𝑠𝜃 ± −2𝛾 𝑐𝑜𝑠𝜃 2 −4 𝛾 2 2 = 2𝛾 𝑐𝑜𝑠𝜃 ± 4 𝛾 2 𝑐𝑜𝑠 2 𝜃 −1 2 = 𝛾𝑐𝑜𝑠𝜃±𝛾𝑠𝑖𝑛𝜃 −1 =𝛾 𝑐𝑜𝑠𝜃±𝑗𝑠𝑖𝑛𝜃 0<𝛾<1

Problem M3.1 M3.1 : Determine and plot the real and imaginary parts and the magnitude and phase spectra of the following DTFT for various value of 𝛾 and 𝜃. 𝑧= 2𝛾 𝑐𝑜𝑠𝜃 ± −2𝛾 𝑐𝑜𝑠𝜃 2 −4 𝛾 2 2 = 2𝛾 𝑐𝑜𝑠𝜃 ± 4 𝛾 2 𝑐𝑜𝑠 2 𝜃 −1 2 = 𝛾𝑐𝑜𝑠𝜃±𝛾𝑠𝑖𝑛𝜃 −1 =𝛾 𝑐𝑜𝑠𝜃±𝑗𝑠𝑖𝑛𝜃 0<𝛾<1 Note : these roots are poles of the transfer function.

Question ?

Problem M3.3(b) M3.1 : Determine and plot the real and imaginary parts and the magnitude and phase spectra of the following DTFT. X 𝑒 𝑗𝜔 = 0.3192 1+0.1885 𝑒 −𝑗𝜔 −0.1885 𝑒 −𝑗2𝜔 − 𝑒 −𝑗3𝜔 1+0.7856 𝑒 −𝑗𝜔 +1.4654 𝑒 −𝑗2𝜔 −0.2346 𝑒 −𝑗3𝜔

Problem M3.3(b) M3.1 : Determine and plot the real and imaginary parts and the magnitude and phase spectra of the following DTFT. X 𝑒 𝑗𝜔 = 0.3192 1+0.1885 𝑒 −𝑗𝜔 −0.1885 𝑒 −𝑗2𝜔 − 𝑒 −𝑗3𝜔 1+0.7856 𝑒 −𝑗𝜔 +1.4654 𝑒 −𝑗2𝜔 −0.2346 𝑒 −𝑗3𝜔 Using Matlab roots function to check its zeros.!!

Question ?