upsampex.m

来自「通信系统仿真原理与无线应用第三章全部程序」· M 代码 · 共 20 行

M
20
字号
%File:c3_upsampex.m
echo on
M=6;   %upsample factor
h=c3_lininterp(M);    %imp response of linear interpolator
t=0:10; %time vector
tu=0:60;  %upsampled time vector 
x=sin(2*pi*t/10);    %original samples
xu=c3_upsamp(x,M);    %upsampled sequence
subplot(4,1,1)
stem(t,x,'k')
ylabel('x')
subplot(4,1,2)
stem(tu,xu,'k')
ylabel('xu')
subplot(4,1,3)
stem(h,'k')
xi=conv(h,xu);
subplot(4,1,4)
stem(xi,'k')
ylabel('xi')

⌨️ 快捷键说明

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