0% found this document useful (0 votes)
35 views3 pages

Lab Report-01 Class Work

This lab report summarizes work done using MATLAB to: 1) Evaluate polynomials, find roots of polynomials, perform convolution and deconvolution of vectors, and use the residue function. 2) Use Laplace transforms to solve differential equations, finding the Laplace transform of functions and inverse Laplace transforms. 3) Solve homework problems involving Laplace transforms of various functions to find the original functions.

Uploaded by

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

Lab Report-01 Class Work

This lab report summarizes work done using MATLAB to: 1) Evaluate polynomials, find roots of polynomials, perform convolution and deconvolution of vectors, and use the residue function. 2) Use Laplace transforms to solve differential equations, finding the Laplace transform of functions and inverse Laplace transforms. 3) Solve homework problems involving Laplace transforms of various functions to find the original functions.

Uploaded by

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

Lab report-01

Class Work :
>> clear all
>> close all
>> p=[1 2 3 5 9]
p=
1 2 3 5 9
>> s=2;
>> z=polyval(p,s)
z=
63
>> z=roots(p)
z=
0.5027 + 1.5822i
0.5027 - 1.5822i
-1.5027 + 1.0037i
-1.5027 - 1.0037i
>> p=[1 5 7 9]
p=
1 5 7 9
>> z=roots(p)
z=
-3.7777 + 0.0000i
-0.6112 + 1.4174i
-0.6112 - 1.4174i
>> x=[ 2 5 3]
x=
2 5 3
>> y=[1 5]
y=
1 5
>> z=conv(x,y)
z=
2 15 28 15
>> x=[1 5 7 9];

>> y=[1 5];


>> x=[1 0 5 7 9];
>> y=[1 4 1];
>> [q,r]=deconv(x,y)
q=
1 -4 20
r=
0 0 0 -69 -11
>> r=[5;4;2+3i;2-3i]
r=
5.0000 + 0.0000i
4.0000 + 0.0000i
2.0000 + 3.0000i
2.0000 - 3.0000i
>> o=poly(r)
o=
1 -13 69 -197 260
>> n=[1 3]
>> d=[1 5 9];
>> printsys(n,d)
num/den =
s+3
------------s^2 + 5 s + 9
>> n=[1 0 9 1];
>> d=[1 1 2 2];
>> [r p k]=residue(n,p)
r=
-7.2210 + 0.0000i
1.1105 - 0.3806i
1.1105 + 0.3806i
p=
-3.7777 + 0.0000i

-0.6112 + 1.4174i
-0.6112 - 1.4174i
k=
1
>> r=[2;7;1+2i;1-2i];
>> p=[3;8i;6i;-6i];
>> k=[1 -1];
>> [n d]=residue(r p k)
[n d]=residue(r p k)
>> syms t;
>> f=exp(-t)*cos(t);
>> F=laplace(f)
F=
(s + 1)/((s + 1)^2 + 1)
>> pretty(F)
s+1
-----------2
(s + 1) + 1

>> ft=exp(-3*t)*cos(4*t);
>> fs=laplace(ft)
fs =

(s + 3)/((s + 3)^2 + 16)

>> pretty(fs)
Home Work:

s+3

Ques 1.1:

-------------

>>
Fs=laplace(15*(diff('f(t)',2)))

2
(s + 3) + 16

Fs =

(ii) ft =

15*s^2*laplace(f(t), t, s) 15*s*f(0) - 15*D(f)(0)

1/exp(5*t) - 2/exp(4*t) + 1

Ques 1.2:

>> fs=laplace(ft)

(i)

fs =

>> syms t

1/(s + 5) - 2/(s + 4) + 1/s

>> pretty(fs)
1

(ii)

----- - ----- + -

>> fs=(10*(s+2)*(s+4))/
((s+1)*(s+3)*(s+5).^2)

s+5 s+4 s

fs =

Ques-1.3

((10*s + 20)*(s + 4))/((s +


1)*(s + 3)*(s + 5)^2)

(i)
>> syms s t

>> fs=(10*(s+2)*(s+4))/
((s+1)*(s+3)*(s+5).^2);

>> fs=(28*s+3)/
(s.^3+6*s.^2+8*s)

>> ft=ilaplace(fs)

fs =

ft =

(28*s + 3)/(s^3 + 6*s^2 +


8*s)
>> ft=ilaplace(fs)

15/(16*exp(t)) + 5/
(4*exp(3*t)) - 35/(16*exp(5*t))
+ (15*t)/(4*exp(5*t))

ft =

>> pretty(ft)

53/(4*exp(2*t)) - 109/
(8*exp(4*t)) + 3/8

15 exp(-t) 5 exp(-3 t) 5 exp(-5 t)


15 t exp(-5 t)

>> pretty(ft)
53 exp(-2 t)
t)
-----------+ 3/8
4

109 exp(-4

---------+ ----------16

------------8

+ ----------- - -----------4

16

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy