实验clear all;
a=[1 2 3 4];
b=[3 4 5 6];
c=a+b;
d=a-b;
e=a.*b;
f=a./b;
g=a.^b;
n=1:4;
subplot(4,2,1);stem(n,a);
xlabel(n);xlim([0 5]);ylabel(A);
subplot(4,2,2);stem(n,b);
xlabel(n);xlim([0 5]);ylabel(B);
subplot(4,2,3);stem(n,c);
xlabel(n);xlim([0 5]);ylabel(C);
subplot(4,2,4);stem(n,d);
xlabel(n);xlim([0 5]);ylabel(D);
subplot(4,2,5);stem(n,e);
xlabel(n);xlim([0 5]);ylabel(E);
subplot(4,2,6);stem(n,f);
xlabel(n);xlim([0 5]);ylabel(F);
subplot(4,2,7);stem(n,g);
xlabel(n);xlim([0 5]);ylabel(G);
(2)用MATLAB实现下列序列:
a) x(n)=0.8n 0≤n≤15
b) x(n)=e(0.2+3j)n 0≤n≤15
c) x(n)=3co
原创力文档

文档评论(0)