?? p10_6.m
字號(hào):
% Program P10_6% Illustration of Interpolation Process%clf;L = input('Up-sampling factor = ');% Generate the input sequencen = 0:49;x = sin(2*pi*0.043*n) + sin(2*pi*0.031*n);% Generate the interpolated output sequencey = interp(x,L);% Plot the input and the output sequencessubplot(2,1,1);stem(n,x(1:50));title('Input Sequence');xlabel('Time index n'); ylabel('Amplitude');subplot(2,1,2);m = 0:(50*L)-1;stem(m,y(1:50*L));title('Output Sequence');xlabel('Time index n'); ylabel('Amplitude');
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -