American International University-Bangladesh: Declaration and Statement of Authorship
American International University-Bangladesh: Declaration and Statement of Authorship
UNIVERSITY-BANGLADESH
Faculty of Engineering
* Student(s) must complete all details except the faculty use part.
** Please submit all assignments to your course teacher or the office of the concerned teacher.
Group Name/No.: 07
6
7
8
9
10
Faculty use only
FACULTYCOMMENTS
Marks Obtained
Total Marks
Objective:
The objective of this experiment is to get introduced with useful tools for mathematical
operations in MATLAB such as partial fraction expansion, simplification, pole-zero
determination, Laplace transform, inverse Laplace transform, state-space model generation etc. It
is easy to learn because of its interpreted language. Later it can be used to facilitate our
simulation projects also. As we know, MATLAB is more powerful and essential than excel, it is
very beneficiary to know these mathematical operations for plotting graph and results in
academic papers. It can be used to understand how to analyze performance of second order
systems too.
Task:
1. Write down two transfer functions (as if after performing Laplace transform on them) that are
defined as follows:
Then use the MATLAB function “series” and apply a negative feedback. Both expressions
should be viewed using the MATLAB function “printsys”.
2. Write down the following transfer function (after performing Laplace transform on it):
Now using the MATLAB function “step” a unit step function is given as an input for the wheel
velocity versus time response and the output response is seen for certain time limit defined as
“t”.
3. Using the MATLAB function “poly”, convert ‘deny’ to polynomial from the roots value
given in the program. Then using the MATLAB function “residue”, do partial fraction expansion
to the function defined by ‘numy’ and ‘deny’.
4. Write down the following transfer function (as if after performing Laplace transform on it)
first as row vector.
Then using the MATLAB function “tf”, show an actual mathematical expression of the
transfer function in the output.
5. Define the transfer function (as if after performing Laplace transform on it) as two separate
row vectors for numerator and denominator. Define the gain "k" as a variable. Then using the
MATLAB function “zpk”, convert the transfer function to zero pole gain format.
6. Define a symbolic variable 's' and then define Laplace transformed functions 'F1' and ‘F2’
using 's' for the following equations. After that, apply inverse Laplace transform to 'F1' and ‘F2’
using the MATLAB function “ilaplace”. Show all the equations in standard mathematical format
using the MATLAB function “pretty”.
7. Define symbolic variable 't’ and then define an inverse Laplace transform function 'f'. After
that, apply Laplace transform to 'f' using the MATLAB function “laplace”. Show all the
equations in standard mathematical format using the MATLAB function “pretty” and do further
simplification using the MATLAB function "simplify".
8. Define a transfer function (as if after performing Laplace transform on it) as two separate row
vectors for numerator and denominator. Then convert the transfer function to its equivalent state
space representation using the MATLAB function “tf2ss”.
Results:
Codes Results
num=[0 0 2 1] den=[6 10 20 num/den =
5]
printsys(num, den, 's') 2s+1
-------------------------
6 s^3 + 10 s^2 + 20 s + 5
sys =
2s+1
-------------------------
6 s^3 + 10 s^2 + 20 s + 5
p=
-0.6917 + 1.5694i
-0.6917 - 1.5694i
-0.2833 + 0.0000i
k=
[]
num=[0 0 2 1]; den=[6 10 20 5]; root =
printsys(num, den, 's'); sys=tf(num,
den); step(num,den);
1.0000 + 0.0000i
[r,p,k]=residue(num,den)
-0.0352 + 0.2629i
root=roots(r)
>>
system3 =
20 2
30 s + --------------------- + 10 s
3 2
s + 9 s + 23 s + 15
ilaplace(system3) >>
ilaplace(system3)
ans =
(5*exp(-t))/2 -
5*exp(-3*t) +
(5*exp(-5*t))/2 +
30*dirac(1, t) +
10*dirac(2, t)
ans =
1/s^2
1
-- 2 s
>>
1
----------------- 2 s^2
+ 20 s +
10
Continuous-time
transfer function.
-10 -5
1 0
B=
1
0
= 0 0.5000
D=