Numeric Matlab for Laplace Transforms

Similar documents
EE -213 BASIC CIRCUIT ANALYSIS LAB MANUAL

EE -213 BASIC CIRCUIT ANALYSIS LAB MANUAL

ECE 3793 Matlab Project 3 Solution

ECE 3793 Matlab Project 3

EE Experiment 11 The Laplace Transform and Control System Characteristics

The Laplace Transform

Control System Engineering

The Laplace Transform

University of Alberta ENGM 541: Modeling and Simulation of Engineering Systems Laboratory #7. M.G. Lipsett & M. Mashkournia 2011

INTRODUCTION TO TRANSFER FUNCTIONS

ECE382/ME482 Spring 2005 Homework 1 Solution February 10,

Solution of ODEs using Laplace Transforms. Process Dynamics and Control

ECE 203 LAB 1 MATLAB CONTROLS AND SIMULINK

Lecture 5 Rational functions and partial fraction expansion

9.5 The Transfer Function

Modeling. Transition between the TF to SS and SS to TF will also be discussed.

Universiti Malaysia Perlis EKT430: DIGITAL SIGNAL PROCESSING LAB ASSIGNMENT 5: DIGITAL FILTER STRUCTURES

Identification Methods for Structural Systems. Prof. Dr. Eleni Chatzi System Stability - 26 March, 2014

Digital Signal Processing Lab 4: Transfer Functions in the Z-domain

UNIVERSITI MALAYSIA PERLIS

Integration of Rational Functions by Partial Fractions

Example Linear Algebra Competency Test

Numerical Methods. Equations and Partial Fractions. Jaesung Lee

MAT 275 Laboratory 7 Laplace Transform and the Symbolic Math Toolbox

Transform Solutions to LTI Systems Part 3

Chap 4. State-Space Solutions and

Expressing a Rational Fraction as the sum of its Partial Fractions

SIGNALS AND SYSTEMS LABORATORY 4: Polynomials, Laplace Transforms and Analog Filters in MATLAB

Step Response of First-Order Systems

Section 8.3 Partial Fraction Decomposition

Cayley-Hamilton Theorem

The Laplace Transform

POSITIVE REALNESS OF A TRANSFER FUNCTION NEITHER IMPLIES NOR IS IMPLIED BY THE EXTERNAL POSITIVITY OF THEIR ASSOCIATE REALIZATIONS

Z - Transform. It offers the techniques for digital filter design and frequency analysis of digital signals.

Control Systems I. Lecture 6: Poles and Zeros. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

CSL361 Problem set 4: Basic linear algebra

Recursive, Infinite Impulse Response (IIR) Digital Filters:

Control Systems Engineering (Chapter 2. Modeling in the Frequency Domain) Prof. Kwang-Chun Ho Tel: Fax:

Introduction to Controls

Module 4 : Laplace and Z Transform Lecture 36 : Analysis of LTI Systems with Rational System Functions

Matlab Controller Design. 1. Control system toolbox 2. Functions for model analysis 3. Linear system simulation 4. Biochemical reactor linearization

Solution to Homework Assignment 1

EE Control Systems LECTURE 14

Problem Set 3: Solution Due on Mon. 7 th Oct. in class. Fall 2013

Introduction to the z-transform

Poles and Zeros and Transfer Functions

APPLICATIONS FOR ROBOTICS

It is common to think and write in time domain. creating the mathematical description of the. Continuous systems- using Laplace or s-

Representing Polynomials

Problem Weight Score Total 100

The z-transform Part 2

Multivariable Control. Lecture 05. Multivariable Poles and Zeros. John T. Wen. September 14, 2006

Formulation of Linear Constant Coefficient ODEs

Signals and Systems Laboratory with MATLAB

Introduction & Laplace Transforms Lectures 1 & 2

Polynomial and Rational Functions. Copyright Cengage Learning. All rights reserved.

MATH 2050 Assignment 8 Fall [10] 1. Find the determinant by reducing to triangular form for the following matrices.

7.17. Determine the z-transform and ROC for the following time signals: Sketch the ROC, poles, and zeros in the z-plane. X(z) = x[n]z n.

Arithmetic Operations. The real numbers have the following properties: In particular, putting a 1 in the Distributive Law, we get

M. Matrices and Linear Algebra

MATHEMATICAL MODELING OF CONTROL SYSTEMS

Definition of the Laplace transform. 0 x(t)e st dt

JUST THE MATHS UNIT NUMBER 1.9. ALGEBRA 9 (The theory of partial fractions) A.J.Hobson

Identification Methods for Structural Systems

(i) Represent discrete-time signals using transform. (ii) Understand the relationship between transform and discrete-time Fourier transform

ME scope Application Note 28

Unit 2: Modeling in the Frequency Domain Part 2: The Laplace Transform. The Laplace Transform. The need for Laplace

Linear Systems. Linear systems?!? (Roughly) Systems which obey properties of superposition Input u(t) output

2.161 Signal Processing: Continuous and Discrete Fall 2008

Motivation. From SS to TF (review) Realization: From TF to SS. MECH468 Modern Control Engineering MECH550P Foundations in Control Engineering

Math 232 Name: Key Dr. Beezer Quiz LT Spring Show all of your work and explain your answers fully. There is a total of 105 possible points.

Some of the different forms of a signal, obtained by transformations, are shown in the figure. jwt e z. jwt z e

Outline. Classical Control. Lecture 2

MATHEMATICS Lecture. 4 Chapter.8 TECHNIQUES OF INTEGRATION By Dr. Mohammed Ramidh

CDS 101/110: Lecture 6.2 Transfer Functions

Digital Control System Models. M. Sami Fadali Professor of Electrical Engineering University of Nevada

Polynomial and Synthetic Division

Using MATLB for stability analysis in Controls engineering Cyrus Hagigat Ph.D., PE College of Engineering University of Toledo, Toledo, Ohio

Poles, Zeros and System Response

University of Toronto Department of Electrical and Computer Engineering ECE410F Control Systems Problem Set #3 Solutions = Q o = CA.

Problem Set #7 Solutions Due: Friday June 1st, 2018 at 5 PM.

spring, math 204 (mitchell) list of theorems 1 Linear Systems Linear Transformations Matrix Algebra

22 APPENDIX 1: MATH FACTS

EE Control Systems LECTURE 9

Z-Transform. 清大電機系林嘉文 Original PowerPoint slides prepared by S. K. Mitra 4-1-1

Chapter Intended Learning Outcomes: (i) Understanding the relationship between transform and the Fourier transform for discrete-time signals

How to Create Matlab Script and Simulink Model for Designing a Pole Placement Controller

ELEG 305: Digital Signal Processing

Exercise 1a: Transfer functions

Partial Fractions. Prerequisites: Solving simple equations; comparing coefficients; factorising simple quadratics and cubics; polynomial division.

Lecture 2 : Mathematical Review

ZEROS OF POLYNOMIAL FUNCTIONS ALL I HAVE TO KNOW ABOUT POLYNOMIAL FUNCTIONS

A system that is both linear and time-invariant is called linear time-invariant (LTI).

Linear Algebra Practice Problems

Representation of standard models: Transfer functions are often used to represent standard models of controllers and signal filters.

Frequency Response of Discrete-Time Systems

Professor Fearing EE C128 / ME C134 Problem Set 2 Solution Fall 2010 Jansen Sheng and Wenjie Chen, UC Berkeley

Math 3313: Differential Equations Laplace transforms

Equations in Quadratic Form

ECE382/ME482 Spring 2005 Homework 6 Solution April 17, (s/2 + 1) s(2s + 1)[(s/8) 2 + (s/20) + 1]

Transcription:

EE 213 Spring 2008 LABORATORY # 4 Numeric Matlab for Laplace Transforms Objective: The objective of this laboratory is to introduce some numeric Matlab commands that are useful with Laplace transforms The numeric commands are useful when all the circuit element values are specified as numbers; the only non-numeric parameter in the input and output signals is the time or the complex frequency; these commands calculate and, or plot the answers as functions at specific times or complex frequencies Numerical Commands: TRANSFER FUNCTION REPRESENTATION: A general form for many Laplace transforms is as the ratio of polynomials in the Laplace variable s: X(s) = n k sk + n k 1 s k 1 + n k 2 s k 2 + + n 1 s 1 + n 0 s 0 d l s l + d l 1 s l 1 + d l 2 s l 2 + + d 1 s 1 + d 0 s 0 ; such a Laplace transform is referred to as a rational Laplace transform The variable k is the degree of the numerator; l is the degree of the denominator In many problems, termed proper, or bottom heavy, rational Laplace transforms, the degree of the numerator is strictly larger than the degree of the denominator: l> k; otherwise, the rational Laplace transform is termed improper, or not bottom heavy For Matlab numerical commands, the rational polynomial form of the Laplace transform is represented by two row vectors of coefficients of the polynomials in

descending powers of the complex frequency: num = [n k n k 1 n k 2 n 1 n 0 ] and den = [d l d l 1 d l 2 d 1 d 0 ] In many Matlab commands, such as zp2tf or tf2zp the letters tf are used as a memory aid for this representation POLE AND ZERO REPRESENTATION: The pole and zero representation of a Laplace transform is: X(s) = g (s z k )(s z k 1 )(s z k 2 ) (s z 2 )(s z 1 ) The roots of the (s p )(s p )(s p ) (s p l l 1 l 2 2 )(s p 1 ) numerator, z 1,z 2,,z k 2,z k 1,z k, are referred to as the zeros of the Laplace transform; the roots of the denominator, p 1,p 2,,p l 2,p l 1,p l, are referred to as the poles of the Laplace transform, and the ratio of the two highest power coefficients is the gain g = n k /d l For Matlab numerical commands, this pole zero form of the Laplace transform is represented by two column vectors of roots of the numerator and denominator and the gain: z = [z k ;z k 1 ;z k 2 ;;z 1 ], den = [p l ; p l 1 ; p l 2 ;;p 1 ] and g=[g] In many Matlab commands, such as zp2tf, tf2zp, or pzmap the letters zp are used as a memory aid for this representation Matlab determines the appropriate representation pz or tf by whether the input vectors are two rows or two columns and a scalar for this and many other commands CONVERSION BETWEEN POLE ZERO AND TRANSFER FUNCTION REPRESENTATIONS: To convert from the rational polynomial, or transfer function, representation of a Laplace transform to the pole zero representation of the same transform one uses the Matlab command [z,p,g]=tf2zp(num,den), with the numerator polynomial num and the denominator polynomial den as inputs To plot the poles and zeros on the complex plane

the appropriate Matlab command is pzmap(num,den); the zeros are represented by 0's and the poles are represented by X's Use Matlab to determine, and plot, the poles, zeros, and gain of a Laplace transforms with the numerator and denominator polynomials generated with each of the numeric Matlab commands below: >> [n2,d2]=ellip(8,1,25,[1 3],'stop','s');pzmap(n,d) Plot the poles and zeros of each of these Laplace transforms Use the Matlab command zp2tf to verify that Matlab calculates the proper numerator and denominator polynomials for a given set of poles zeros and gain PARTIAL FRACTION REPRESENTATION X(s) = The partial fraction representation of a rational Laplace transform is: l r j k l + d s j s p j j =1 j j = 0 The roots of the denominator p 1,p 2,,p l 2,p l 1,p l are still referred to as the poles of the Laplace transform, the numerators of the fractions r 1,r 2,,r l 2,r l 1,r l, are referred to as the residues and the polynomial k l d s j j is referred to as the direct term When a rational Laplace j = 0 transform is bottom heavy, the direct term is zero For Matlab numerical commands, the residue form of the Laplace transform is represented by two column vectors of the same dimension containing the residues and the poles and a row vector representing the direct term polynomial Corresponding terms in the column vectors are the residue and pole of one term in the expansion; the row vector that represents the direct term polynomial has the highest power coefficient first The direct term is an empty vector when the Laplace transform is proper

To convert from the rational polynomial, or transfer function, representation of a Laplace transform to the residue representation of the same transform one uses the Matlab command [r,p,d]=residue(num,den), with the numerator polynomial num and the denominator polynomial den as the arguments of the command Use the Matlab to determine the residue representation of each of the rational Laplace transforms with the numerator and denominator polynomials generated with each of the numeric Matlab commands below: >> [n2,d2]=ellip(8,1,25,[1 3],'stop','s');pzmap(n,d) The Matlab command residue also converts from the residue representation to the transfer function representation if the input to the command consists of the column vector of residues, the column vector of poles and the row vector representing the coefficients of the direct term; the vectors returned are the row vectors of coefficients of the numerator and denominator of the transfer function The correct form of the command is [num,den]=residue(r,p,d) Use this command to verify that the residue calculations made above are correct TIME DOMAIN SIGNALS If a rational Laplace transform is proper and represented with the transfer function representation, the inverse Laplace transform is easily plotted with the Matlab command impulse; this command will also return the vectors used to plot the inverse transform If the Laplace transform is not proper, impulse plots, or computes, only the inverse Laplace transform with a null direct term For Matlab numerical commands when the numerator and denominator have been defined and correspond to a proper Laplace transform, the inverse Laplace transform is plotted by the command impulse(num,den); the command [h,t]=impulse(num,den) will return the vectors used to plot the impulse response The argument of the impulse command can also be the column vectors of poles and zeros and the gain of the Laplace

transform rather than the row vectors representing the numerator and denominator of the Laplace transform Another operation that one frequently encounters in inverting Laplace transforms is the need to multiply two rational Laplace transfer functions If both Laplace transforms are in the transfer function representation, the numerator of the product is the product of the two numerators and the denominator is the product of the two denominators The coefficients of the product of two polynomials can be computed with the command prod=conv(poly1,poly2) If the polynomials a(s) and b(s)are represented by the column vectors of roots pa and pb, respectively, and the cofficients of the highest power ca and cb, respectively, and the polynomial c(s)=a(s)b(s) is represented by the column vector pc and coefficient cc The column vector pc is easily calculated with the Matlab command pc=[pa;pb] and the coefficient cc=ca+cb Use the Matlab to plot the inverse Laplace transforms of each of the Laplace transforms with the numerator and denominator polynomials generated with each of the numeric Matlab commands below: >> [n2,d2]=ellip(8,1,25,[1 3],'stop','s');pzmap(n,d) Also plot the inverse transform of the product of these two functions