Professional Documents
Culture Documents
The written exercises are aim the student will be able to do the basic calculation by hand and enhance their skills through
learning the MATLAB. For this worksheet, type your answer in the below before placing the
MATLAB scips. After answering it type the scrip and save this with file as name as [ name]_[course]_[course code] and email
to kentroferos@gmail.com
Find for inverse Laplace and write your code at the code block below. Ans:
syms a t A
f = A*exp(-a*t);
F = laplace(f)
Excercis A :
Ans: F =
s+ a
syms a t
f = exp(-a*t);
F=laplace(f)
F=1/(a+s)
1
2. Find for inverse Laplace of F 1(s) =
(s+ 3)( s+1)
Ans:
–t –3t
e e
F = –
2 2
syms s t
ilaplace(1/((s+3)*(s+1))) ans
=
exp(-t)/2 - exp(-3*t)/2
3. Roots of the Denominator of F (s) Are Real and Distinct, Find for inverse Laplace
2
F 1( s) =
( s+1)( s+ 2 )
–t – 2t
Ans: F = 2e – 2e
syms s t
ilaplace(2/((s+1)*(s+2))) ans
=
2*exp(-t) - 2*exp(-2*t)
1
F =
s
Ans: F=1
syms s t
ilaplace(1/s)
ans =
d2 y dy
+ 12 + 32 y = 32 u(t) dt
dt2
Ans:
u = 0, t = 0 sec sec
o
, uT = 500 N, Mass = 1000 kg, b = 50 N
m m
1. Draw the free body diagram for the car to control. please refer from the above figure with respect to the given
parameters.
G(s)=
1
ms+b
3. Solve for the velocity v and take sy tem model through transfer function.
G(s)= 1
ms+b
G(s)= 1
1000kg(s)+ 50N sec/m
V(t)= (1/1000)(1-e^(-50t))
Use the MATLAB to find the response of the velocity of the car from sec
u
0
= 0, t = 0
m
% Define system parameters m
% Time vector
500 * ones(size(t));
plot(t, v);
xlabel('Time (s)');
ylabel('Velocity (m/s)');