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

📄 alias.m

📁 This program illustrates the effect of alising of frequency leading to signal distortion,the outpu
💻 M
字号:
% This program illustrates the effect of alising
% of frequency leading to signal distortion
fs =10000;       % sampling frequency
ts = 1/fs;
n = (1:50)*ts;
N = 1000;       %No of points in DFT
fr = fs/N;
m = (1:1000)*fr;
for f=1000:2000:9000;
   x=sin(2*pi*f*(0:2000)/10000+pi/4);
   plot(n,x(1:50)), title('sine waveform')
   xlabel('time'), ylabel('amplitude')
   pause
   
   y = abs(fft(x,1000));
   plot(m,y), title('frequency response')
   xlabel('frequency '), ylabel('magnitude')

   pause
   
   soundsc(x)
   pause
end

⌨️ 快捷键说明

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