xinhaoyuna_1.m
来自「给出了数字信号处理课程设计的基本程序」· M 代码 · 共 19 行
M
19 行
clear all
figure();
y1=zhengxian(1,28.1,32);subplot(4,2,1);stem(y1,'.');title('F=28.1');
subplot(4,2,2);stem(abs(FFT(y1,32)),'.');%正弦信号
y1=zhengxian(1,30.3,32);subplot(4,2,3);stem(y1,'.');title('F=30.3');
subplot(4,2,4);stem(abs(FFT(y1,32)),'.');%正弦信号
y1=zhengxian(1,32.5,32);subplot(4,2,5);stem(y1,'.');title('F=32.5');
subplot(4,2,6);stem(abs(FFT(y1,32)),'.');%正弦信号
y1=zhengxian(1,32,32);subplot(4,2,7);stem(y1,'.');title('F=32');
subplot(4,2,8);stem(abs(FFT(y1,32)),'.');%正弦信号
figure();
y1=zhengxian(1,33,32);subplot(4,2,1);stem(y1,'.');title('F=33');
subplot(4,2,2);stem(abs(FFT(y1,32)),'.');%正弦信号
y1=zhengxian(1,35.5,32);subplot(4,2,3);stem(y1,'.');title('F=35.5');
subplot(4,2,4);stem(abs(FFT(y1,32)),'.');%正弦信号
y1=zhengxian(1,64,32);subplot(4,2,5);stem(y1,'.');title('F=64');
subplot(4,2,6);stem(abs(FFT(y1,32)),'.');%正弦信号
y1=zhengxian(1,128,32);subplot(4,2,7);stem(y1,'.');title('F=128');
subplot(4,2,8);stem(abs(FFT(y1,32)),'.');%正弦信号
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?