⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c5_sqrcdemo.m

📁 通信系统仿真原理与无线应用第五章平方根升余弦例子
💻 M
字号:
%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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -