0% found this document useful (0 votes)
15 views7 pages

Solving Derivative, Partial Derivative, Integral, Definite Integral

MY SIGNAL AND SYSTEM LAB REPORT

Uploaded by

Talha Minhas
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)
15 views7 pages

Solving Derivative, Partial Derivative, Integral, Definite Integral

MY SIGNAL AND SYSTEM LAB REPORT

Uploaded by

Talha Minhas
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/ 7

LAB # 9

Solving Derivative, Partial Derivative, Integral, Definite


Integral.

Program And Simulation:


%solving derivative, partial derivative, Integral, definite
integral
clc
clear all

syms a b c d e g h f1 f2 f3 x y;

%Derivative
f1=3*x^3-4*x^2+5*x-3;
a=diff(f1,x) %First order derivative
b=diff(a,x) %2nd Order derivative
c=diff(b,x) %3rd Order derivative

%Partial derivative
f2=x^2*y+x*y^3-x^3+y^2;
d=diff(f2,x) %Derivative w.r.t x
e=diff(f2,y) %Derivative w.r.t y

%Integral
f3=3*x^3-4*x^3;
g=int(f3,x)
h=int(f3,x,0,5) %Definite Integral
Results:
a = 9*x^2 - 8*x + 5
b = 18*x – 8
c = 18
d = - 3*x^2 + 2*x*y + y^3
e = x^2 + 3*x*y^2 + 2*y
g = -x^4/4
h = -625/4
LAB#10

Implementation of Laplace Transform & Z-


Transform.

Introduction:
This lab is based on solving equation.

Program And Simulation:


%Laplace Z-transform
clc
clear all
syms f1 f2 t n x2 x1; %Symbolic Object Construction
f1=1/sqrt(t);
x1=laplace(f1) %Laplace Transform

f2-(0.5)^(n-3);
x2=ztrans(f2) %Z-Transform

Results:

x1 = pi^(1/2)/s^(1/2)
x2 = z/(z - 1)^2
LAB#11

a) Fourier series.
b) Fourier Transform & Inverse Fourier transform.
Program And Simulation:
%Fourier Series
clc
clear all
syms x y
f=exp(-x^2);
fourier(f,x,y)

%Fourier Transform & Inverse Fourier Transform


clc
clear all
t=0:100;
f=-50:50;
x=exp(-2*t);
figure;
plot(t,x); %plotting signal
xlabel('Time');
ylabel('Amplitude');
title('Signal');

y=fft(x);
figure;
plot(f,y);
xlabel('Frequency');
ylabel('Amplitude');
title('Fourier Transform');

z=ifft(y);
figure;
plot(t,z);
xlabel('Time');
ylabel('Amplitude');
title('Inverse Fourier Transform');
Results:
Signal:

Fourier Transform :
Inverse Fourier Transform :

You might also like