0% found this document useful (0 votes)
33 views12 pages

Control Engineering and Instrumentation (LAB) : Class

This document provides an overview of various MATLAB commands and functions for working with polynomials and transfer functions. It discusses using doc and help to access MATLAB documentation, representing polynomials in different forms, finding roots of polynomials, polynomial multiplication using conv, and converting differential equations to transfer functions using Laplace transforms. Examples are given demonstrating how to implement these techniques in MATLAB code.

Uploaded by

Hassan Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views12 pages

Control Engineering and Instrumentation (LAB) : Class

This document provides an overview of various MATLAB commands and functions for working with polynomials and transfer functions. It discusses using doc and help to access MATLAB documentation, representing polynomials in different forms, finding roots of polynomials, polynomial multiplication using conv, and converting differential equations to transfer functions using Laplace transforms. Examples are given demonstrating how to implement these techniques in MATLAB code.

Uploaded by

Hassan Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Control Engineering and

Instrumentation
(LAB)
Course Code: ME-316L

Class: Fall-2017
MATLAB Help
 Type doc ‘command’ or help ‘command’ for MATLAB
help.

Examples:
1- doc sqrt
2- help sqrt
Polynomial representation
  
Equation:

MATLAB Code:

P=[3 5 7 8]
‘Check’
Q=1
T=tf(P,Q)
Polynomial representation

  Factored form can also be transformed into polynomial
form by using command ‘poly’.
Equation:

MATLAB Code:
P=poly([-5 -2 -6])
‘Check’
Q=1
T=tf(P,Q)
Roots of a Polynomial
  
Equation:

Code:
P=[1 3 2]

D=roots(P)

Equation:

Code:
P=[5 7 9 3 2]

D=roots(P)
Polynomial Multiplication
Equation:
P1=s3+7s2+10s+9
P2= s4-3s3+6s2+2s+1

Code:
P1=[1 7 10 9]
P2=[1 -3 6 2 1]

P3=conv(P1,P2)
Polynomial Multiplication
Equation:
(s+2)(s+4)(s2+2s+1)
Code:
P1=poly([-2 -4])
P2=[1 2 1]

T=conv(P1,P2)

T1=tf(T,1)
Transfer Function Method
Conversion of ODE to polynomial equation using Laplace Transform.
Partial Fraction
Equation:

Taking Laplace
transform

Cross
Multiplication

Partial Factors
Partial Fraction

Values of K

Final Form
Partial Fraction (MATLAB)
Using this equation
Assignment
 
Equations:

You might also like