Professional Documents
Culture Documents
OUTPUT :
Y=STEP(2,0,10)
N= 0 1 2 3 4 5 6 7 8 9 10
Y= 0 0 1 1 1 1 1 1 1 1 1
OUTPUT :
Y=IMP(2,0,10)
N= 0 1 2 3 4 5 6 7 8 9 10
Y= 0 0 0 0 0 0 0 0 0 0 0
OUTPUT :
Y=perdseq([1 2 3 4],4)
Y= 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4
%w=period in pi units
%n=range
function[ ]=sineseq(n,w)
y=sine(w*n) ;
subplot(2,1,1)
plot(n,y)
title(sine wave)
xlable(time------- >)
ylabel(amplitude------- >)
OUTPUT :
Y=SINESEQ(0 :100,0.1*PI)
xlable(Range)
ylable(y1)
subplot(3,1,2)
stem(n2,y2)
title(sequence y2)
xlable(Range)
ylable(y2)
subplot(3,1,3)
stem(n,y3)
title( addition of 2 sequence )
xlable(Range)
ylable(y3)
OUTPUT:
ADSQ(0:2,[12,3],-2:3,[1 2 3 5 6 7])
N= -2 -1 0 1 2 3
Y1= 1 2 4 7 9 7