Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
0 of .
Results for:
P. 1
SHAHID LATIF (06-0125)Digital Signal Processing LAB Manual

# SHAHID LATIF (06-0125)Digital Signal Processing LAB Manual

Ratings:

5.0

(1)
|Views: 607|Likes:

### Availability:

See more
See less

05/11/2014

pdf

text

original

Lab 1Sine Wave :
A=10;O=pi/2;W=(2*pi)/20;T=0:0.5:100;H=A*sin(W*T+O);plot(T,H)title('Sine Wave')xlabel('Time in Sec')ylabel('Amplitude')grid
Exponential Wave:
a=.10;T=0:0.5:10;H=a*power(2.71,T);plot(T,H)title('Exponential Wave')xlabel('Time in Sec')ylabel('Amplitude')grid
Decaying Exponential:
a=.5;K=1.2;t=0:0.1:10;h=K*a.^t;plot(t,h)title('Decaying Exponential')xlabel('Time in Sec')ylabel('Amplitude')grid
1

A Delayed sequence:
a=0:50;z=zeros(1,5);h=[z a];subplot(2,1,1)stem(a)axis([0 50 0 50])title('Sequence')gridsubplot(2,1,2)stem(h)axis([0 55 0 55])title('Delayed Sequence')grid
Unit Impulse Function:
n=-10:10;a=[zeros(1,10) 1 zeros(1,10)];stem(n,a)title('Unit Impulse')grid
2

Lab 2
Convolving Two Signals:1.
x=[1 3 5 7];h=[9 5 2];y=conv(x,h)subplot(3,1,1)stem(x)title('Input')gridsubplot(3,1,2)stem(h)title('Impulse Response')gridsubplot(3,1,3)stem(y)title('Output')gridy =9 32 62 94 45 14
Filtering an Input Signal:
2.
a=[1 -2];b=[1 -6 -9];input=[3 5 9 7];y=filter(a,b,input)subplot(2,1,1)stem(input)title('Input')subplot(2,1,2)stem(y)title('Output')
3