c5_sqrcdemo.m
来自「通信系统仿真原理与无线应用第五章平方根升余弦例子」· M 代码 · 共 31 行
M
31 行
%File: c5_sqrcdemo.m
T=1; %symbol time
k=10; %samples per symbol
m=4; %delay
beta=0.32; %bandwidth factor
h=sqrc(T,k,m,beta); %impulse response
in=zeros(1,101); %input
in(11)=1;
figure;
plot(h)
out=conv(in,h); %output h[10]
out1=conv(out,h); %conv of h[n-10] and h[n]
t=2:0.1:8;
figure;
subplot(2,1,1)
stem(t,out(21:81),'.') %plot h[h-10]
grid
xlabel('Time')
ylabel('h[n-10]')
subplot(2,1,2)
t=6:0.1:12; %time vetor for plor
stem(t,out1(61:121),'.') %plot conv of h[n-10] and h[10]
grid
xlabel('Time')
ylabel('conv(h[n-10],h[n])')
%End of scribpt file
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?