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

📄 spread_spectrum.m

📁 使用matlab程序实现了由随机序列到码元电平、m序列直接扩频解扩、qpsk调制解调
💻 M
字号:
function  [out1 out2]=spread_spectrum(m,N,a,b)
N=20;                                  %随机数点数20
td=0.1;
f0=3000;
wc=2e4*pi;
g=100;                                 %一个矩形电平采样点

out1=kuopinzlp(m,N,a);                   %I通道扩频
out2=kuopinzlp(m,N,b);                   %Q通道扩频
figure(3);
subplot(211);
t=linspace(0,td,length(out1));
plot(t,out1,'LineWidth',1.5);grid on;
title(' I spread spectrum pulse');
axis([0 td -1.5 1.5]);                 %画I通道扩频图
subplot(212);
plot(t,out2,'LineWidth',1.5);grid on;
axis([0 td -1.5 1.5]);
title('Q spread spectrum pulse');      %画Q通道扩频

⌨️ 快捷键说明

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