15 views

Uploaded by Bint e Farooq

- Overview
- Giacomini (2013) the Relationship Between DSGE and VAR Models. CeMMAP
- Matlab Basics
- Aircraft Longitudinal Control Experiment.pdf
- Syllabus 8th Sem
- Dr. Farooq Control lec- Mathematical modelling
- Time Table 1st SEM 2013- 14
- Mathematical Modeling of Dynamic Systems
- Ex- Sloution Compendium
- passive energy dissipation devices
- EXP_7.doc
- 0deec520b8b7dc23d6000000 (1)
- IIJEE-2014-12-01-2
- Lecture 09
- ajassp.2010.682.691 imp
- BLUE EYES FINAL
- 00014___a36f679dbd3f90471bbf87f8e1c27346.pdf
- IIBA BABOK v2 Process Data Flow Diagram v0_02 (DRAFT)
- mid01_sl.pdf
- Quiz 2

You are on page 1of 10

Lab#1

05-cp-03

1)-RESIDUE COMMAND:The residue function of MATLAB can be used to compute the partial fraction expansion (PFE) of a ratio of two polynomials. [R,P,K] = RESIDUE(B,A)

output

The residue command gives three pieces of information: The residues are given in output vector r, The poles are given in output vector p, The so-called direct terms are given in output vector k. When the order of the numerator polynomial is less than the order of the denominator polynomial there will be no direct When the order of the numerator equals the order of the denominator there will be one direct When the order of the numerator is one greater than the order of the denominator there will be two direct terms. When the order of the numerator is two greater than the order of the denominator there will be three direct terms; That is, when the order of the numerator is p greater than the order of the denominator (with p=0) there will be p+1 direct terms

Input

The residue command requires two input vectors: one holding the coefficients of the numerator and one holding the coefficients of the numerator. The right-most element in these vectors corresponds to the z0 coefficient, the next element to the left is the z1 coefficient, etc., until you reach the highest power; if a power is not present it has a zero coefficient.

Control Engineering

Lab#1

05-cp-03

2)-PRINTSYS COMMAND

PRINTSYS is used to print state space systems with labels to the right and above the system matrices or to print transfer functions as a ratio of two polynomials. PRINTSYS (A,B,C,D,ULABELS,YLABELS,XLABELS) PRINTSYS (A,B,C,D) prints the system with numerical labels. PRINTSYS (NUM,DEN,'s') or PRINTSYS(NUM,DEN,'z') Prints the transfer function as a ratio of two polynomials in the transform variabless or 'z'.

3)-Transfer function

In order to enter a transfer function into MATLAB, the variables much be given numerical value, because MATLAB cannot manipulate symbolic variables without the symbolic toolbox. Enter the numerator and denominator polynomial coefficients separately as vectors of coefficients of the individual polynomials in descending order. The syntax for defining a transfer function in MATLAB is: transferfunction = tf(num, den) where num is defined as the vector of numerator coefficients, and den is defined as the vector of denominator coefficients. Input the transfer function X(s)/F(s) = 1/[ms2 + bs + k] into MATLAB: >> >> >> >> >> >> m = 2; b = 5; k = 3; num = [ 1 ]; den = [ m b k ]; tutorial_tf = tf(num, den)

MATLAB will assign the transfer function under the name tutorial_tf, and output the following: Transfer function: 1 --------------2 s^2 + 5 s + 3

Control Engineering

Lab#1

05-cp-03

There are two commands for represent system in to zero pole form TF2ZP SS2ZP

TF2ZP COMMAND

[Z,P,K] = TF2ZP(NUM,DEN) Finds the zeros, poles, and gains from a SIMO transfer function in polynomial form:

output

This command returns three things zeros in columns poles in a column of gain values The variable z returns all of the The variable p returns all of the The variable k returns a column

Input

numerator of polinomial denumerator of polinomial NUM DEN is is the the cofficient cofficient of of

SS2ZP COMMAND

a state space representation is a mathematical model of a physical system as a set of input, output and state variables related by first-order differential equations. 3

Control Engineering

Lab#1

05-cp-03

There are two commands for represent system in to state space form TF2SS ZP2SS

1)-TF2SS COMMAND

Calculates the state-space representation [A,B,C,D] = TF2SS(NUM,DEN) . One important fact to note is that although there is only one transfer function that describes a system, you can have multiple state-space equations that describe a system. The tf2ss command returns the state-space matrices in control canonical form. Therefore, if you take a set of state-space equations, convert them into a transfer function, and then convert it back, you will not have the same set of statespace equations you started with unless you started with matrices in control canonical form.

2)-ZP2SS COMMAND

[A,B,C,D] = zp2ss(z,p,k) Again, it is important to note that more than one set of state-space matrices can describe a system. The state-space matrices returned from this command are also in control canonical form

There are two commands for represent system in to transfer function form SS2TF ZP2TF

1)-SS2TF COMMAND

Suppose you have a set of state-space equations and you would like to convert them to the equivalent transfer function. This is done using the command [num,den] = ss2tf(A,B,C,D,iu) For example, suppose you had the following set of state equations 4

Control Engineering

Lab#1

05-cp-03

Input

A = [0 1 0 -0.05]; B = [0; 0.001]; C = [0 1]; D = 0;

Output

Here are some notes about ss2tf:

num = 0 den = 1.0000 0.0010 0.0500 0 0

[num,den]=ss2tf(A,B,C,D) The numerator, num, will have as many rows as there are outputs (or rows in the matrix C). The numerator and denominator are returned in descending powers of s Care must be taken to check the numerator and denominator, as zeros at infinity may produce erroneous transfer functions.

2)-ZP2TF COMMAND

To get a system described by a pole-zero model into a transfer function model, use the following command [num,den] = zp2tf(z,p,k)

Input

z = 4.9498 0 p = 1.6362 -4.9498 0 0.2083 -5.7753 5.3851 k = 1.8182 0 0 num = 0 1.8182 0 4.5455 den =

Output

0 -7.4373 44.5460 0

1.0000

0.1818 -31.1818

6.4786

4.5455

The various control objects can be connected in series, parallel or negative feedback.This is summarized in Table 5

Control Engineering

Lab#1

05-cp-03

1)-SERIES COMMAND

SYS = SERIES(SYS1,SYS2,OUTPUTS1,INPUTS2) SYS1 and SYS2 in series such that the outputs of SYS1 specified by OUTPUTS1 are connected to the inputs of SYS2 specified by INPUTS2. The vectors OUTPUTS1 and INPUTS2 contain indices into the outputs and inputs of SYS1 and SYS2, respectively. The resulting LTI model SYS maps u1 to y2.

SYS1

SYS2

Control Engineering

Lab#1

05-cp-03

2)-PARALLEL COMMAND

SYS = PARALLEL(SYS1,SYS2,IN1,IN2,OUT1,OUT2) Connects the two LTI models SYS1 and SYS2 in parallel such that the inputs specified by IN1 and IN2 are connected and the outputs specified by OUT1 and OUT2 are summed. The resulting LTI model SYS maps [v1;u;v2] to [z1;y;z2]. The vectors IN1 and IN2 contain indexes into the input vectors of SYS1 and SYS2, respectively, and define the input channels u1 and u2 in the diagram. Similarly, the vectors OUT1 and OUT2 contain indexes into the outputs of these two systems. V1 SYS1 U SYS2 V2 Z2 Y Z1

3) FEEDBACK COMMAND

SYS = FEEDBACK(SYS1,SYS2) Computes an LTI model SYS for the closed-loop feedback system. assumed and the resulting system SYS maps u to y.

Negative feedback is

7

Control Engineering

Lab#1

05-cp-03

SYS1 U SYS2 V

Program # 2 :num=[2 5 3 6] den=[1 6 11 6] [z,p,k]=tf2zp(num,den) disp('Zeros of the function is = ') disp(z) disp('Poles of the function is = ') disp(p) disp('Gain of the function is = ') disp(k)

Output:8

Control Engineering

Lab#1

05-cp-03

Output

Output:-

Control Engineering

Lab#1

05-cp-03

Output:-

Program # 6 :num=[2 1 1 2] den=[1 4 8 2] a=[0 1;-24 -4] b=[1 1;1 0] c=[1 0;0 1] d=[0 0;0 0] [a,b,c,d]=tf2ss(num,den) printsys(num,den,'S')

Output:-

10

- OverviewUploaded byZinnat Oobaye
- Giacomini (2013) the Relationship Between DSGE and VAR Models. CeMMAPUploaded byrhroca2762
- Matlab BasicsUploaded byayphaw
- Aircraft Longitudinal Control Experiment.pdfUploaded byChegrani Ahmed
- Syllabus 8th SemUploaded bynaveen
- Dr. Farooq Control lec- Mathematical modellingUploaded bySadiq
- Time Table 1st SEM 2013- 14Uploaded byBhanu Tej
- Mathematical Modeling of Dynamic SystemsUploaded byAhmed Said
- Ex- Sloution CompendiumUploaded byAli Jaber Al Qattan
- passive energy dissipation devicesUploaded byRipuDamanSingh
- EXP_7.docUploaded bySagarManjrekar
- 0deec520b8b7dc23d6000000 (1)Uploaded byJuan Pablo
- IIJEE-2014-12-01-2Uploaded byAnonymous vQrJlEN
- Lecture 09Uploaded byIrfan Khan
- ajassp.2010.682.691 impUploaded byulaganathan
- BLUE EYES FINALUploaded byButtercup Gal
- 00014___a36f679dbd3f90471bbf87f8e1c27346.pdfUploaded byflausen
- IIBA BABOK v2 Process Data Flow Diagram v0_02 (DRAFT)Uploaded bysreeks456
- mid01_sl.pdfUploaded bysam8293
- Quiz 2Uploaded bySandeep Kumar
- cdc2005.pdfUploaded byAli Hosseini
- qa moduleUploaded byjitesh
- 2714702 advanced control systems syllabusUploaded byMulu Girmay
- 8842Uploaded byPranav Chavan
- 2016-1 Advanced Automatic control Final Exam.pdfUploaded byIslam Saqr
- Pid Tuning OperatorUploaded bykarmowelding
- Discovering Project ComplexityUploaded byMonib Shahid
- Maths Tricks and Shortcuts to Find the Square of Any NumberUploaded bysarikakaushal
- Design and Implementation of Proportional Integral Observer based Linear Model Predictive ControllerUploaded byIDES
- BBA BI 7th-SemesterUploaded byAbhisheshBam

- Basic Electronics QuizUploaded byBint e Farooq
- Clipper HwUploaded byBint e Farooq
- quiz oneUploaded byBint e Farooq
- Interview McqsUploaded byBint e Farooq
- HomeworkUploaded byBint e Farooq
- FrontpageUploaded byBint e Farooq
- Sample Questions of ANNUploaded byBint e Farooq
- Faculty FormUploaded byBint e Farooq
- AbbreviationsUploaded byBint e Farooq
- nueral networkUploaded byBint e Farooq
- nueral networkUploaded byBint e Farooq
- Star Topology LabUploaded byBint e Farooq

- SortingUploaded byFatima Shakeel
- Brochure - GoPro HERO 4Uploaded bySi Tampan Restu
- Solix EDMS Database ArchivingUploaded byBrian Smith
- Computer OrganizationUploaded byjnkumar
- CSC570I Web ServicesUploaded byCorey Ellis
- Converting From 2d to 3dUploaded byFrancisco Caracciolo
- FortiGate II 5-4-1 Student GuideUploaded byDiego Suarez
- 642-813 Implementing Cisco IP Switched Networks (SWITCH)Uploaded byminniejohnson
- Catalyst 2960 LAN Lite Software-10-10Uploaded bysardarji1
- ipc_427c_operating_instructions_en-US_en-US.pdfUploaded bydelciodamin
- MOS Only Negative ResistancesUploaded byAbhishek
- 9783709108932-c1.pdfUploaded byAnabelGonzalez
- ADBMS Board QPaperUploaded byherenisha
- Beginner's Guide to SolidWorks 2012 - Level IIUploaded byabozarsam
- Installation Eng Edition 3Uploaded byJose Breno Vieira Silva
- METAPOST NVH BasicUploaded bynabilishes
- Kumbharana Ck Thesis CsUploaded byYadu Krishnan
- Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik Industri Skripsi Teknik IndustriUploaded byUbed Al-Idist
- R_S_ALR_87013181 Material Ledger Data Over Several PeriodsUploaded bypedrochapin
- x ray unwrapUploaded bymanemaxpro
- EPMofc_10_whatsnewUploaded bySivakumar Kondaraju
- DummyProject_2Uploaded byDuddukuri Srikar
- OpenStack Networking TopicsUploaded byJeffery Padgett
- How SAP Creates Alerts Before Expiry of Number RangeUploaded bySoumen
- User Guide P660Uploaded byDidit Imanadi
- TEMS Pocket 13.3 - Release NoteUploaded bykanser
- 5997251 XP CommandsUploaded byprofessinoal
- Call Flow - Wcdma System Ue to IsdnUploaded byHân Trương
- wrUploaded byton_oliver
- Volvo FlexdentUploaded bywisnu_bayusakti