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

📄 test0802gauss.m

📁 信号处理实例
💻 M
字号:
%---------------------------------------------------------------------------------------
% test0803gauss.m,  for  example 08.03
% gauss signal and its spectrum
% 2006.12.15 LYB
%----------------------------------------------------------------------------------------
clear;
N=64;

alpha=0.05;
a=alpha/pi;a=sqrt(a);a=sqrt(a);

tmt0=((1:N)-N/2-1)';
y = exp(-tmt0.^2 * alpha/2);
y=y.*a;

subplot(221)
plot((-N/2:N/2-1),y);grid on;
axis([-30 30 0 0.5]);
xlabel(' Gauss signal x(t)');
figure(1);
subplot(222)
dsp=fftshift(abs(fft(y)).^2);
plot((-N/2:N/2-1)./N,dsp);grid on;
axis([-0.2 0.2 0 20]);
xlabel(' the Spectrum of x(t)');

%[t0,T]=loctime(y)
%[f0,B]=locfreq(y)
%T*B

⌨️ 快捷键说明

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