You are on page 1of 3

Advance Digital Signal Processing

Assignment #01
Submitted by: Owais Khan
Submitted to: Dr.Salman Khan
Semester 1st Dated:11-09-18
Department: Electrical Engineering (MS Communication)

CECOS University of IT and Emerging Sciences


KPK Pakistan.
Source Code
clear all
clc
t=-4:0.001:4;
a=rectpuls(t);
b=2+a;
c=rectpuls(2*t);
d=rectpuls(t-2);
e=2*a;
f=2*rectpuls(2*(t-2));
figure(1);
clf;
subplot(3,2,1);
plot(t,a);
subplot(3,2,2);
plot(t,b);
subplot(3,2,3);
plot(t,c);
subplot(3,2,4);
plot(t,d);
subplot(3,2,5);
plot(t,e);
subplot(3,2,6);
plot(t,f);
Graphs:

You might also like