Stability and Frequency Response of Linear Systems

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

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

EECE 301 Signals & Systems Prof. Mark Fowler

Lecture 14 - Using the MATLAB Control System Toolbox and Simulink Friday, February 8, 2013

Chapter 6 - Solved Problems

ECE 3793 Matlab Project 3

ECE 203 LAB 1 MATLAB CONTROLS AND SIMULINK

Design IIR Butterworth Filters Using 12 Lines of Code

EECE 301 Signals & Systems Prof. Mark Fowler

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

Poles and Zeros and Transfer Functions

Lab 3: Poles, Zeros, and Time/Frequency Domain Response

CONTROL SYSTEMS LABORATORY ECE311 LAB 1: The Magnetic Ball Suspension System: Modelling and Simulation Using Matlab

Frequency Response Analysis

Overview of Bode Plots Transfer function review Piece-wise linear approximations First-order terms Second-order terms (complex poles & zeros)

Discrete Time Systems

Lecture 16 FREQUENCY RESPONSE OF SIMPLE CIRCUITS

ECE 3793 Matlab Project 3 Solution

Digital Signal Processing: Signal Transforms

EKT 119 ELECTRIC CIRCUIT II. Chapter 3: Frequency Response of AC Circuit Sem2 2015/2016 Dr. Mohd Rashidi Che Beson

CHAPTER 7 : BODE PLOTS AND GAIN ADJUSTMENTS COMPENSATION

UNIVERSITY OF CALIFORNIA AT BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences. EE105 Lab Experiments

Cast of Characters. Some Symbols, Functions, and Variables Used in the Book

CYBER EXPLORATION LABORATORY EXPERIMENTS

Like bilateral Laplace transforms, ROC must be used to determine a unique inverse z-transform.

Problem Weight Score Total 100

Mathematical Modelling Using Simulink

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

Step Response of First-Order Systems

EE nd Order Time and Frequency Response (Using MatLab)

System Simulation using Matlab

Math 100 Sections E/F Fundamental Theorem of Algebra Extra Credit Due Monday, April 23

Math 1314 Lesson 4 Limits

V. IIR Digital Filters

Experiment 13 Poles and zeros in the z plane: IIR systems

Poles, Zeros, and Frequency Response

Simulink Tutorial 1 CPE562

Using MATLAB with the Convolution Method

The Laplace Transform

The Impulse Signal. A signal I(k), which is defined as zero everywhere except at a single point, where its value is equal to 1

(t) ), ( ) where t is time, T is the reaction time, u n is the position of the nth car, and the "sensitivity coefficient" λ may depend on un 1(

Appendix 3B MATLAB Functions for Modeling and Time-domain analysis

Chap 4. State-Space Solutions and

Design of IIR filters

MAT 275 Laboratory 7 Laplace Transform and the Symbolic Math Toolbox

Bangladesh University of Engineering and Technology. EEE 402: Control System I Laboratory

Bfh Ti Control F Ws 2008/2009 Lab Matlab-1

Digital Control Systems

Frequency Response part 2 (I&N Chap 12)

Dynamic circuits: Frequency domain analysis

EE -213 BASIC CIRCUIT ANALYSIS LAB MANUAL

CHAPTER 6 STATE SPACE: FREQUENCY RESPONSE, TIME DOMAIN

Signal Processing First Lab 11: PeZ - The z, n, and ˆω Domains

Explanations and Discussion of Some Laplace Methods: Transfer Functions and Frequency Response. Y(s) = b 1

Simulink Modeling Tutorial

ECE 320 Linear Control Systems Winter Lab 1 Time Domain Analysis of a 1DOF Rectilinear System

EE Experiment 11 The Laplace Transform and Control System Characteristics

The Laplace Transform

Chapter 7 - Solved Problems

Department of Electrical and Computer Engineering. EE461: Digital Control - Lab Manual

Teaching State Variable Feedback to Technology Students Using MATLAB and SIMULINK

INFINITE-IMPULSE RESPONSE DIGITAL FILTERS Classical analog filters and their conversion to digital filters 4. THE BUTTERWORTH ANALOG FILTER

Lecture 3 Matlab Simulink Minimum Phase, Maximum Phase and Linear Phase Systems

6.245: MULTIVARIABLE CONTROL SYSTEMS by A. Megretski. Solutions to Problem Set 1 1. Massachusetts Institute of Technology

APPLICATIONS FOR ROBOTICS

1 Overview of Simulink. 2 State-space equations

State Feedback Controller for Position Control of a Flexible Link

Ninteger v. 2.3 Fractional control toolbox for MatLab

1-DOF Forced Harmonic Vibration. MCE371: Vibrations. Prof. Richter. Department of Mechanical Engineering. Handout 8 Fall 2011

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL & COMPUTER ENGINEERING FINAL EXAM. COURSE: ECE 3084A (Prof. Michaels)

(Refer Slide Time: 02:11 to 04:19)

Review: transient and steady-state response; DC gain and the FVT Today s topic: system-modeling diagrams; prototype 2nd-order system

AMS 27L LAB #6 Winter 2009

2.161 Signal Processing: Continuous and Discrete

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

Numeric Matlab for Laplace Transforms

Transfer func+ons, block diagram algebra, and Bode plots. by Ania- Ariadna Bae+ca CDS Caltech 11/05/15

Frequency Response. Re ve jφ e jωt ( ) where v is the amplitude and φ is the phase of the sinusoidal signal v(t). ve jφ

ME scope Application Note 28

Design IIR Filters Using Cascaded Biquads

EE Control Systems LECTURE 9

Linear System Theory

Signals and Systems. Lecture 11 Wednesday 22 nd November 2017 DR TANIA STATHAKI

Frequency Response of Discrete-Time Systems

2D Plotting with Matlab

GRAPHIC WEEK 7 DR. USMAN ULLAH SHEIKH DR. MUSA MOHD MOKJI DR. MICHAEL TAN LOONG PENG DR. AMIRJAN NAWABJAN DR. MOHD ADIB SARIJARI

EE 4343/ Control System Design Project

A MATLAB- and Simulink-based Signals and Systems Laboratory

EE -213 BASIC CIRCUIT ANALYSIS LAB MANUAL

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

Nyquist Criterion For Stability of Closed Loop System

coefnum = coefden =

1 Introduction & Objective. 2 Warm-up. Lab P-16: PeZ - The z, n, and O! Domains

K(s +2) s +20 K (s + 10)(s +1) 2. (c) KG(s) = K(s + 10)(s +1) (s + 100)(s +5) 3. Solution : (a) KG(s) = s +20 = K s s

Problem Set 9 Solutions

TUTORIAL: STATE VARIABLES and MATLAB

D(s) G(s) A control system design definition

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

YTÜ Mechanical Engineering Department

Transcription:

ECE 350 Linear Systems I MATLAB Tutorial #4 Stability and Frequency Response of Linear Systems This tutorial describes the MATLAB commands that can be used to determine the stability and/or frequency response of a system from its transfer function. System Stability If a linear system is described by a transfer function H(s), the system is said to be stable if the poles of H(s) are in the left half of the complex plane. For example, if: H (s) = s + 2 s 5 + 4s 4 + 3s 3 + 6s 2 + 8s + 10 we can determine whether or not the system is stable by plotting the poles of H(s) (roots of the denominator). First, the poles are found by using the roots command. The argument of the roots command is a vector of the coefficients of the polynomial going from highest order coefficient to lowest. >> poles = roots([1, 4, 3, 6, 8, 10]); Then the poles can be plotted by using: >> plot(real(poles), imag(poles), x ) By default, MATLAB connects data points with solid lines. The x string in the plot command tells MATLAB that we want each point marked with an x and no connecting line. The following plot will result: 1

Note that since there are poles on the right half plane the system is NOT stable. There is also a built in command for generating the pole-zero diagram in the Control Systems Toolbox. To use this command we need to define the transfer function, H(s), using the tf command as follows: Hs=tf([1 2], [1 4 3 6 8 10]); Vectors of their coefficients specify the numerator and denominator of the transfer function. The pole-zero diagram is then generated with: >> iopzmap(hs) Frequency Response The frequency response function, H(jω), is found by setting s = jω in the transfer function for a system. For example, if: H (s) = s 2 + 100 s 2 + 2s + 100 we can specify the numerator and denominator polynomials as B and A respectively: >> B = [1, 0, 100]; >> A = [1, 2, 100]; 2

The freqs command can be used to compute the frequency response function over a range of frequencies. The general form of freqs is: H = freqs(b,a,w) where W is the frequency range in rad/sec. Thus, we can plot the magnitude of this frequency response with: >> B = [ 1 0 100]; >> A = [ 1 2 100]; >> H=freqs(B, A, 0:30); >> plot(0:30, abs(h)) resulting in the following plot. We often want to plot the frequency axis on a log scale (and select frequency points spread evenly on that scale). This can be done as follows: >> omega = logspace(0, 2, 100); Note that this will create a set of 100 points spaced evenly on a log scale from 1 (10^0) to 100 (10^2). Then we can plot the magnitude of H on a log scale using: >> H=freqs(B, A, omega); >> semilogx(omega, abs(h)) 3

Or, to plot the values of the magnitude of H in decibels (db) we use: >> semilogx(omega, 20*log(abs(H))) The phase angle of H is plotted using: >> semilogx(omega, angle(h)) 4

This graph shows the phase angle in radians. We can convert and plot the angle in degrees with: >> semilogx(omega, (180/pi)*angle(H)) Using Simulink to Model a Transfer Function The Transfer Function block in Simulink can be used to model any transfer function. Open a new Simulink model window. Build the model shown in the figure below. The step block is found in the Sources sub-library and the Transfer Fcn block is found in the Continuous sub-library. Double click on the Step source and set the Step time to 0, the initial value to 0 and the final value to 1. This will produce a step function u(t). In order to simulate the transfer function in the previous section, input the vector [1, 0, 100] 5

for the numerator coefficients and [ 1, 2, 100] for the denominator coefficients. Set the Configuration Parameters to have a stop time of 5, a type: fixed-step and a fixed step size of 0.01. Run the simulation. The scope output is as shown in the figure below. The output converges to a finite value (1 in this case). This confirms that the system is stable. Note that the poles are: >> roots(a) ans = -1.0000 + 9.9499i -1.0000-9.9499i which are on the left half plane. If we change the transfer function in the Simulink model to be: H (s) = 1 s 1 by changing the numerator and denominator coefficients to be [1] and [1-1] respectively, the following output is displayed on the scope: Note that this unstable system (pole of +1) has an output that grows without bound. 6