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

📄 2psk信号波形及其功率谱.txt

📁 这是基于MATLAB的数字调相技术编程,包括对调制解调过程的编程以及其有效性和可靠性分析
💻 TXT
字号:
%2PSK
clear all;
close all;

A=1;
fc=3; %3Hz
N_sample=8; %取样数
N=500; %码元数
Ts=1; %1Baud/s

dt=Ts/fc/N_sample; %波形采样间隔
t=0:dt:N*Ts-dt;
Lt=length(t);

%产生二进制信源
d=sign(randn(1,N));
dd=sigexpand((d+1)/2,fc*N_sample); %sigexpand的功能是把短序列扩展成长序列
gt=ones(1,fc*N_sample); %NRZ波形

ht=A*cos(2*pi*fc*t);

figure(1)
subplot(211); %输入NRZ信号波形(单极性)
d_NRZ=conv(dd,gt);
plot(t,d_NRZ(1:length(t)));
axis([0 10 0 1.2]);grid
ylabel('输入信号');

d_2psk=2*d_NRZ-1;
s_2psk=d_2psk(1:Lt).*ht;
subplot(212)
plot(t,s_2psk);
axis([0 10 -1.2 1.2]);grid
ylabel('2psk');



figure(2)
subplot(211); %输入NRZ频谱
[f,d_NRZf]=T2F(t,d_NRZ(1:length(t))); %T2F的功能是实现二进制序的傅立叶变换
plot(f,10*log10(abs(d_NRZf).^2/Ts));
axis([-15 15 0 30]);grid
ylabel('输入信号功率谱密度');

subplot(212)
[f,s_2pskf]=T2F(t,s_2psk);
plot(f,10*log10(abs(s_2pskf).^2/Ts));
axis([-15 15 0 30]);grid
ylabel('2PSK功率谱密度');

⌨️ 快捷键说明

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