%contentone
n=-6:6;
for k=-6:6;
if(k<0 & k>-5)
x(k+7)=2.*k+10;
elseif(k<5 & k>-1)
x(k+7)=6;
else x(k+7)=0;
end
end
subplot(3,3,1);
stem(n,x);
subplot(3,3,2);
[y,yn]=seqshift(x,n,1);
y=y.*2;
stem(yn,y);
subplot(3,3,3);
[y,yn]=seqshift(x,n,-2);
y=y.*3;
stem(yn,y);
subplot(3,3,4);
[y,yn]=seqshift(x,n,4);
[y,yn] = seqfold(y,yn);
stem(yn,y);
subplot(3,3,5);
[y,yn] = seqfold(x,n);
[y,yn]=seqshift(y,yn,4);
stem(yn,y);
a=-2:4;
for b=-2:4;
m(b+3)=b+3;
end
subplot(3,3,6);
%stem(a,m);
[y,yn]=seqadd(x,n,m,a);
stem(yn,y);
subplot(3,3,7);
[y,yn]=seqmult(x,n,m,a);
stem(yn,y);
subplot(3,3,8);
[y,yn]=convwthn(x,n,m,a);
stem(yn,y);
评论0
最新资源