dm07402.m

来自「the code of the book come form the book 」· M 代码 · 共 26 行

M
26
字号
%dm07402 
%观察离散序列的时域运算
x1=[2,1,0,1,2];
n1=-2:2;
x2=1:6;
n2=0:5;
[x3,n3]=jxl(x1,x2,n1,n2);      %两序列相加
[x4,n4]=cxl(x1,x2,n1,n2);      %两序列相乘
subplot(2,2,1)
stem(n1,x1,'filled')
title('x1(n)')
xlabel('n')
subplot(2,2,2)
stem(n2,x2,'filled');
title('x2(n)')
xlabel('n')
subplot(2,2,3)
stem(n3,x3,'filled')
title('x1(n)+x2(n)')
xlabel('n')
subplot(2,2,4)
stem(n4,x4,'filled')
title('x1(n)*x2(n)')
xlabel('n')
set(gcf,'color','w')

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?