draw2.m

来自「3D加速信号处理」· M 代码 · 共 18 行

M
18
字号
res_temp=NorMK2_DH(500:1500);
res_dec=resample(res_temp,1,3);
res_int=resample(res_temp,3,1);

figure;
subplot(311);
plot(res_temp);grid on;
axis([0,1000,-1,1]);
title('一段信号波形');
subplot(312);
plot(res_dec);grid on;
axis([0,333,-1,1]);
title('采样率为1/3时重采样后的波形');
subplot(313);
plot(res_int);grid on;
axis([0,3000,-1,1]);
title('采样率为3时重采样后的信号');

⌨️ 快捷键说明

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