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

📄 dm10401.m

📁 the code of the book come form the book of marlix laboratory with the book of singal
💻 M
字号:
% dm10401
% 傅里叶变换的对称性
dt = 0.1;                                  %采样间隔
t = -20:dt:20;
f1 = sinc(t/pi);                           %计算抽样函数f1(t)=Sa(t)的离散采样点
f2 = pi*(Heaviside(t+1)-Heaviside(t-1));   %计算门函数f2(t)=πg2(t)的离散采样点
N = 500;                                   %角频率采样点数
k = -N:N;
W = 2*pi*k/(N*dt);
F1 = dt*f1*exp(-j*t'*W);                  %计算抽样函数的频谱
F2 = dt*f2*exp(-j*t'*W);                  %计算门函数的频谱
subplot(221);
plot(t,f1);
xlabel('t');
ylabel('f1(t)');
axis([-20 20 -0.5 1.1]);
subplot(222);
plot(W,F1);
axis([-2 2 -1 4]);
xlabel('w');
ylabel('F1(w)');
subplot(223);
plot(t,f2);
axis([-2 2 -1 4]);
xlabel('t');
ylabel('f2(t)');
subplot(224);
plot(W,F2);
axis([-20 20 -3 7]);
xlabel('w');
ylabel('F2(w)');
%End

⌨️ 快捷键说明

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