p10_2.m

来自「matlab實用指南的各種程序 分三部分」· M 代码 · 共 17 行

M
17
字号
% Program P10_2% Illustration of Down-Sampling by an Integer Factor%clf;n = 0: 49;m = 0: 50*3 - 1;x = sin(2*pi*0.042*m);y = x([1 : 3 : length(x)]);subplot(2,1,1)stem(n, x(1:50)); axis([0 50 -1.2 1.2]);title('Input Sequence');xlabel('Time index n');ylabel('Amplitude');subplot(2,1,2)stem(n, y); axis([0 50 -1.2 1.2]);title('Output Sequence');ylabel('Amplitude');xlabel('Time index n');

⌨️ 快捷键说明

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