SlideShare a Scribd company logo
1 of 6
Download to read offline
The Matlab Residue Command
The Matlab command residue allows one to do partial fraction expansion.
>> help residue
RESIDUE Partial-fraction expansion (residues).
[R,P,K] = RESIDUE(B,A) finds the residues, poles and direct term of
a partial fraction expansion of the ratio of two polynomials B(s)/A(s).
If there are no multiple roots,
B(s) R(1) R(2) R(n)
---- = -------- + -------- + ... + -------- + K(s)
A(s) s - P(1) s - P(2) s - P(n)
Vectors B and A specify the coefficients of the numerator and
denominator polynomials in descending powers of s. The residues
are returned in the column vector R, the pole locations in column
vector P, and the direct terms in row vector K. The number of
poles is n = length(A)-1 = length(R) = length(P). The direct term
coefficient vector is empty if length(B) < length(A), otherwise
length(K) = length(B)-length(A)+1.
If P(j) = ... = P(j+m-1) is a pole of multiplicity m, then the
expansion includes terms of the form
R(j) R(j+1) R(j+m-1)
-------- + ------------ + ... + ------------
s - P(j) (s - P(j))^2 (s - P(j))^m
[B,A] = RESIDUE(R,P,K), with 3 input arguments and 2 output arguments,
converts the partial fraction expansion back to the polynomials with
coefficients in B and A.
See also POLY, ROOTS, DECONV.
1
To perform partial fraction expansion on T(z)
T(z) =
4z + 1
z2 − z − 2
we enter the following Matlab commands.
>> num = [4 1];
>> den = [1 -1 -2];
>> [r,p,k] = residue(num,den)
r =
3
1
p =
2
-1
k =
[]
This tells us that,
T(z) =
3
z − 2
+
1
z + 1
.
2
The residue command also works when some poles are complex. For exam-
ple, to find the partial fraction expansion of X(z)
X(z) =
4 z + 3
2 z3 − 3.4 z2 + 1.98 z − 0.406
we can use the following Matlab commands.
>> num = [4 3];
>> den = [2 -3.4 1.98 -0.406];
>> [r,p,k] = residue(num,den)
r =
36.2500
-18.1250 +13.1250i
-18.1250 -13.1250i
p =
0.7000
0.5000 + 0.2000i
0.5000 - 0.2000i
k =
[]
This tells us that,
X(z) =
36.25
z − 0.7
+
−18.125 + 13.125i
z − (0.5 + 0.2i)
+
−18.125 − 13.125i
z − (0.5 − 0.2i)
.
Notice that the residues and poles appear in complex-conjugate pairs. In
fact, this is always the case when the coefficients in X(z) are real.
3
Here is an example with a repeated pole. To perform partial fraction expan-
sion on T(z)
T(z) =
2z + 1
z3 + 5z2 + 8z + 4
we enter the following Matlab commands.
>> num = [2 1];
>> den = [1 5 8 4];
>> [r,p,k] = residue(num,den)
r =
1.0000
3.0000
-1.0000
p =
-2.0000
-2.0000
-1.0000
k =
[]
This tells us that,
T(z) =
1
z + 2
+
3
(z + 2)2
+
−1
z + 1
4
The residue command also works in the other direction. To write G(z),
G(z) =
5
z − 3
+
6
z + 4
−
7
z + 1/5
as the ratio of two polynomials we can use the following commands.
>> r = [5 6 -7];
>> p = [3 -4 -1/5];
>> [num,den] = residue(r,p,[])
num =
4.0000 -2.8000 84.4000
den =
1.0000 1.2000 -11.8000 -2.4000
This tells us that
G(z) =
4z2
− 2.8 z + 84.4
z3 + 1.2z2 − 11.8z − 2.4
.
The argument k is needed only when the degree of the numerator is greater
than or equal to the degree of the denominator, so it was not needed for these
examples.
5
In this example, the degree of the numerator is greater than the degree of
the denominator, so k is required.
X(z) =
3 z4
− 1.1 z3
+ 0.88 z2
− 2.396 z + 1.348
z3 − 0.7 z2 − 0.14 z + 0.048
The partial fraction expansion of X(z) can be found using the following
Matlab commands.
>> num = [3 -1.1 0.88 -2.396 1.348];
>> den = [1 -0.7 -0.14 0.048];
>> [r,p,k] = residue(num,den)
r =
1.0000
4.0000
-3.0000
p =
0.8000
-0.3000
0.2000
k =
3.0000 1.0000
This tells us that
X(z) = 3 z + 1 +
1
z − 0.8
+
4
z + 0.3
−
3
z − 0.2
6

More Related Content

What's hot

Z Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And SystemsZ Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And SystemsMr. RahüL YøGi
 
Fourier series Introduction
Fourier series IntroductionFourier series Introduction
Fourier series IntroductionRizwan Kazi
 
Q-Factor In Series and Parallel AC Circuits
Q-Factor In Series and Parallel AC CircuitsQ-Factor In Series and Parallel AC Circuits
Q-Factor In Series and Parallel AC CircuitsSurbhi Yadav
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficientSanjay Singh
 
Calculator design with lcd using fpga
Calculator design with lcd using fpgaCalculator design with lcd using fpga
Calculator design with lcd using fpgaHossam Hassan
 
Dsp U Lec10 DFT And FFT
Dsp U   Lec10  DFT And  FFTDsp U   Lec10  DFT And  FFT
Dsp U Lec10 DFT And FFTtaha25
 
Low level injection
Low level injectionLow level injection
Low level injectionHyunsu-Jin
 
Discrete fourier transform
Discrete fourier transformDiscrete fourier transform
Discrete fourier transformMOHAMMAD AKRAM
 
Ee1 chapter12 phasor_diagram
Ee1 chapter12 phasor_diagramEe1 chapter12 phasor_diagram
Ee1 chapter12 phasor_diagramCK Yang
 
SIGNAL OPERATIONS
SIGNAL OPERATIONSSIGNAL OPERATIONS
SIGNAL OPERATIONSmihir jain
 
X2 T05 04 reduction formula (2010)
X2 T05 04 reduction formula (2010)X2 T05 04 reduction formula (2010)
X2 T05 04 reduction formula (2010)Nigel Simmons
 
Jump&Loop instruction
Jump&Loop instructionJump&Loop instruction
Jump&Loop instructionjosnapv
 
Circular Convolution
Circular ConvolutionCircular Convolution
Circular ConvolutionSarang Joshi
 

What's hot (20)

Divrgence theorem with example
Divrgence theorem with exampleDivrgence theorem with example
Divrgence theorem with example
 
Z Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And SystemsZ Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And Systems
 
Decoders
DecodersDecoders
Decoders
 
Fourier series Introduction
Fourier series IntroductionFourier series Introduction
Fourier series Introduction
 
Q-Factor In Series and Parallel AC Circuits
Q-Factor In Series and Parallel AC CircuitsQ-Factor In Series and Parallel AC Circuits
Q-Factor In Series and Parallel AC Circuits
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficient
 
Calculator design with lcd using fpga
Calculator design with lcd using fpgaCalculator design with lcd using fpga
Calculator design with lcd using fpga
 
Dsp U Lec10 DFT And FFT
Dsp U   Lec10  DFT And  FFTDsp U   Lec10  DFT And  FFT
Dsp U Lec10 DFT And FFT
 
Low level injection
Low level injectionLow level injection
Low level injection
 
Discrete fourier transform
Discrete fourier transformDiscrete fourier transform
Discrete fourier transform
 
Stoke’s theorem
Stoke’s theoremStoke’s theorem
Stoke’s theorem
 
Base band transmission
Base band transmissionBase band transmission
Base band transmission
 
Relation and function_xii
Relation and function_xiiRelation and function_xii
Relation and function_xii
 
Ee1 chapter12 phasor_diagram
Ee1 chapter12 phasor_diagramEe1 chapter12 phasor_diagram
Ee1 chapter12 phasor_diagram
 
SIGNAL OPERATIONS
SIGNAL OPERATIONSSIGNAL OPERATIONS
SIGNAL OPERATIONS
 
X2 T05 04 reduction formula (2010)
X2 T05 04 reduction formula (2010)X2 T05 04 reduction formula (2010)
X2 T05 04 reduction formula (2010)
 
HERMITE SERIES
HERMITE SERIESHERMITE SERIES
HERMITE SERIES
 
Jump&Loop instruction
Jump&Loop instructionJump&Loop instruction
Jump&Loop instruction
 
Chap 5
Chap 5Chap 5
Chap 5
 
Circular Convolution
Circular ConvolutionCircular Convolution
Circular Convolution
 

Viewers also liked

Apresentação Serviços 3DMK
Apresentação Serviços 3DMKApresentação Serviços 3DMK
Apresentação Serviços 3DMKAndré Benetta
 
RECP_Symposium_summary report and participants list_final
RECP_Symposium_summary report and participants list_finalRECP_Symposium_summary report and participants list_final
RECP_Symposium_summary report and participants list_finalericaddis
 
OdysseyFamilyiscomplete (1)
OdysseyFamilyiscomplete (1)OdysseyFamilyiscomplete (1)
OdysseyFamilyiscomplete (1)John Schumacher
 
E26 30 w led garden light nj usa pole fixture
E26 30 w led garden light nj usa pole fixtureE26 30 w led garden light nj usa pole fixture
E26 30 w led garden light nj usa pole fixturengt led
 
Smart Been - Smart Greenhouse
Smart Been - Smart GreenhouseSmart Been - Smart Greenhouse
Smart Been - Smart GreenhouseSmart Been
 

Viewers also liked (7)

Apresentação Serviços 3DMK
Apresentação Serviços 3DMKApresentação Serviços 3DMK
Apresentação Serviços 3DMK
 
RECP_Symposium_summary report and participants list_final
RECP_Symposium_summary report and participants list_finalRECP_Symposium_summary report and participants list_final
RECP_Symposium_summary report and participants list_final
 
OdysseyFamilyiscomplete (1)
OdysseyFamilyiscomplete (1)OdysseyFamilyiscomplete (1)
OdysseyFamilyiscomplete (1)
 
irshad update cv (3)
irshad update cv (3)irshad update cv (3)
irshad update cv (3)
 
Photoshop Advanced
Photoshop AdvancedPhotoshop Advanced
Photoshop Advanced
 
E26 30 w led garden light nj usa pole fixture
E26 30 w led garden light nj usa pole fixtureE26 30 w led garden light nj usa pole fixture
E26 30 w led garden light nj usa pole fixture
 
Smart Been - Smart Greenhouse
Smart Been - Smart GreenhouseSmart Been - Smart Greenhouse
Smart Been - Smart Greenhouse
 

Similar to Residues in MATLAB

Linear transformation.ppt
Linear transformation.pptLinear transformation.ppt
Linear transformation.pptRaj Parekh
 
Real number system full
Real  number  system fullReal  number  system full
Real number system fullAon Narinchoti
 
Real number system full
Real  number  system fullReal  number  system full
Real number system fullAon Narinchoti
 
pradeepbishtLecture13 div conq
pradeepbishtLecture13 div conqpradeepbishtLecture13 div conq
pradeepbishtLecture13 div conqPradeep Bisht
 
Intro to Matlab programming
Intro to Matlab programmingIntro to Matlab programming
Intro to Matlab programmingAhmed Moawad
 
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer key
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer keyNbhm m. a. and m.sc. scholarship test september 20, 2014 with answer key
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer keyMD Kutubuddin Sardar
 
Robotic Manipulator with Revolute and Prismatic Joints
Robotic Manipulator with Revolute and Prismatic JointsRobotic Manipulator with Revolute and Prismatic Joints
Robotic Manipulator with Revolute and Prismatic JointsTravis Heidrich
 
number theory
number theorynumber theory
number theoryklawdet
 
Polynomials and Curve Fitting in MATLAB
Polynomials and Curve Fitting in MATLABPolynomials and Curve Fitting in MATLAB
Polynomials and Curve Fitting in MATLABShameer Ahmed Koya
 
Add math may june 2016 p1
Add math may june 2016 p1Add math may june 2016 p1
Add math may june 2016 p1Don Cunningham
 
Introduction to MatLab programming
Introduction to MatLab programmingIntroduction to MatLab programming
Introduction to MatLab programmingDamian T. Gordon
 
Relations & functions.pps
Relations  &  functions.ppsRelations  &  functions.pps
Relations & functions.ppsindu psthakur
 
Tree distance algorithm
Tree distance algorithmTree distance algorithm
Tree distance algorithmTrector Rancor
 
Solving the energy problem of helium final report
Solving the energy problem of helium final reportSolving the energy problem of helium final report
Solving the energy problem of helium final reportJamesMa54
 
Complex differentiation contains analytic function.pptx
Complex differentiation contains analytic function.pptxComplex differentiation contains analytic function.pptx
Complex differentiation contains analytic function.pptxjyotidighole2
 

Similar to Residues in MATLAB (20)

Linear transformation.ppt
Linear transformation.pptLinear transformation.ppt
Linear transformation.ppt
 
Laplace_1.ppt
Laplace_1.pptLaplace_1.ppt
Laplace_1.ppt
 
Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
 
Real number system full
Real  number  system fullReal  number  system full
Real number system full
 
Real number system full
Real  number  system fullReal  number  system full
Real number system full
 
pradeepbishtLecture13 div conq
pradeepbishtLecture13 div conqpradeepbishtLecture13 div conq
pradeepbishtLecture13 div conq
 
Intro to Matlab programming
Intro to Matlab programmingIntro to Matlab programming
Intro to Matlab programming
 
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer key
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer keyNbhm m. a. and m.sc. scholarship test september 20, 2014 with answer key
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer key
 
Robotic Manipulator with Revolute and Prismatic Joints
Robotic Manipulator with Revolute and Prismatic JointsRobotic Manipulator with Revolute and Prismatic Joints
Robotic Manipulator with Revolute and Prismatic Joints
 
number theory
number theorynumber theory
number theory
 
LaplaceTransformIIT.pdf
LaplaceTransformIIT.pdfLaplaceTransformIIT.pdf
LaplaceTransformIIT.pdf
 
Polynomials and Curve Fitting in MATLAB
Polynomials and Curve Fitting in MATLABPolynomials and Curve Fitting in MATLAB
Polynomials and Curve Fitting in MATLAB
 
Add math may june 2016 p1
Add math may june 2016 p1Add math may june 2016 p1
Add math may june 2016 p1
 
Laplace
LaplaceLaplace
Laplace
 
Lecture5
Lecture5Lecture5
Lecture5
 
Introduction to MatLab programming
Introduction to MatLab programmingIntroduction to MatLab programming
Introduction to MatLab programming
 
Relations & functions.pps
Relations  &  functions.ppsRelations  &  functions.pps
Relations & functions.pps
 
Tree distance algorithm
Tree distance algorithmTree distance algorithm
Tree distance algorithm
 
Solving the energy problem of helium final report
Solving the energy problem of helium final reportSolving the energy problem of helium final report
Solving the energy problem of helium final report
 
Complex differentiation contains analytic function.pptx
Complex differentiation contains analytic function.pptxComplex differentiation contains analytic function.pptx
Complex differentiation contains analytic function.pptx
 

Recently uploaded

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 

Recently uploaded (20)

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 

Residues in MATLAB

  • 1. The Matlab Residue Command The Matlab command residue allows one to do partial fraction expansion. >> help residue RESIDUE Partial-fraction expansion (residues). [R,P,K] = RESIDUE(B,A) finds the residues, poles and direct term of a partial fraction expansion of the ratio of two polynomials B(s)/A(s). If there are no multiple roots, B(s) R(1) R(2) R(n) ---- = -------- + -------- + ... + -------- + K(s) A(s) s - P(1) s - P(2) s - P(n) Vectors B and A specify the coefficients of the numerator and denominator polynomials in descending powers of s. The residues are returned in the column vector R, the pole locations in column vector P, and the direct terms in row vector K. The number of poles is n = length(A)-1 = length(R) = length(P). The direct term coefficient vector is empty if length(B) < length(A), otherwise length(K) = length(B)-length(A)+1. If P(j) = ... = P(j+m-1) is a pole of multiplicity m, then the expansion includes terms of the form R(j) R(j+1) R(j+m-1) -------- + ------------ + ... + ------------ s - P(j) (s - P(j))^2 (s - P(j))^m [B,A] = RESIDUE(R,P,K), with 3 input arguments and 2 output arguments, converts the partial fraction expansion back to the polynomials with coefficients in B and A. See also POLY, ROOTS, DECONV. 1
  • 2. To perform partial fraction expansion on T(z) T(z) = 4z + 1 z2 − z − 2 we enter the following Matlab commands. >> num = [4 1]; >> den = [1 -1 -2]; >> [r,p,k] = residue(num,den) r = 3 1 p = 2 -1 k = [] This tells us that, T(z) = 3 z − 2 + 1 z + 1 . 2
  • 3. The residue command also works when some poles are complex. For exam- ple, to find the partial fraction expansion of X(z) X(z) = 4 z + 3 2 z3 − 3.4 z2 + 1.98 z − 0.406 we can use the following Matlab commands. >> num = [4 3]; >> den = [2 -3.4 1.98 -0.406]; >> [r,p,k] = residue(num,den) r = 36.2500 -18.1250 +13.1250i -18.1250 -13.1250i p = 0.7000 0.5000 + 0.2000i 0.5000 - 0.2000i k = [] This tells us that, X(z) = 36.25 z − 0.7 + −18.125 + 13.125i z − (0.5 + 0.2i) + −18.125 − 13.125i z − (0.5 − 0.2i) . Notice that the residues and poles appear in complex-conjugate pairs. In fact, this is always the case when the coefficients in X(z) are real. 3
  • 4. Here is an example with a repeated pole. To perform partial fraction expan- sion on T(z) T(z) = 2z + 1 z3 + 5z2 + 8z + 4 we enter the following Matlab commands. >> num = [2 1]; >> den = [1 5 8 4]; >> [r,p,k] = residue(num,den) r = 1.0000 3.0000 -1.0000 p = -2.0000 -2.0000 -1.0000 k = [] This tells us that, T(z) = 1 z + 2 + 3 (z + 2)2 + −1 z + 1 4
  • 5. The residue command also works in the other direction. To write G(z), G(z) = 5 z − 3 + 6 z + 4 − 7 z + 1/5 as the ratio of two polynomials we can use the following commands. >> r = [5 6 -7]; >> p = [3 -4 -1/5]; >> [num,den] = residue(r,p,[]) num = 4.0000 -2.8000 84.4000 den = 1.0000 1.2000 -11.8000 -2.4000 This tells us that G(z) = 4z2 − 2.8 z + 84.4 z3 + 1.2z2 − 11.8z − 2.4 . The argument k is needed only when the degree of the numerator is greater than or equal to the degree of the denominator, so it was not needed for these examples. 5
  • 6. In this example, the degree of the numerator is greater than the degree of the denominator, so k is required. X(z) = 3 z4 − 1.1 z3 + 0.88 z2 − 2.396 z + 1.348 z3 − 0.7 z2 − 0.14 z + 0.048 The partial fraction expansion of X(z) can be found using the following Matlab commands. >> num = [3 -1.1 0.88 -2.396 1.348]; >> den = [1 -0.7 -0.14 0.048]; >> [r,p,k] = residue(num,den) r = 1.0000 4.0000 -3.0000 p = 0.8000 -0.3000 0.2000 k = 3.0000 1.0000 This tells us that X(z) = 3 z + 1 + 1 z − 0.8 + 4 z + 0.3 − 3 z − 0.2 6