Signals Laboratory Expertiment 2

c)

%STAIR plot
T = 0:0.25:25
B = 2*sin(T)
stairs(T,B)


d)

%Unit function
n = -3:1:3
y = ones(1,7)
stem(n,y)

e)

n = -3:1:3
x1 = abs(n)
n1 = n - 2

subplot(3,1,1), stem(n,x1)
ylabel('amplitude')
xlabel('n')
subplot(3,1,2), stem(n1,x1)
ylabel('amplitude')
xlabel('n')
subplot(3,1,3), stem(-n1,x1)
ylabel('amplitude')
xlabel('n')



please leave some comments.. thanks!

Designed by Posicionamiento Web | Bloggerized by GosuBlogger