⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exa050101.m

📁 用matlab编写的数字信号处理源码
💻 M
字号:
%---------------------------------------------------------------------------
% exa050101.m  for example 5.1.1 
% to explain the linear phase;
%---------------------------------------------------------------------------
clear all;

% 产生信号;
N=16;
n=-N/2:N+N/2;
w=0.1*pi;
x=cos(w*n)+cos(2*w*n);
subplot(311)
stem(n,x,'.');grid on;
hold on;
plot(n,zeros(size(x)));

% 线性相移;
x=cos(w*(n-3))+cos(2*w*(n-3));
subplot(312)
stem(n,x,'.');grid on;
hold on;
plot(n,zeros(size(x)));

% 非线性相移;
x=cos(w*n-pi/4)+cos(2*w*n-pi);
subplot(313)
stem(n,x,'.');grid on;
hold on;
plot(n,zeros(size(x)));

⌨️ 快捷键说明

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