• Handsome_LAS
    了解作者
  • matlab
    开发工具
  • 1KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 5
    下载次数
  • 2019-06-10 21:36
    上传日期
QPSK调制解调,仿真信噪比在0到10dB之间的调制解调图像,通过计算欧氏距离进行解调。
QPSK调制解调代码.rar
  • error_count.m
    290B
  • Untitled2.m
    1.8KB
内容介绍
clear all; close all; clc; SNR_dB=0:10; err_ber=zeros(1,length(SNR_dB)); BER_R = [0.07865,0.05628,0.03751,0.02288,0.0125,0.005954,0.002388,0.0007727,0.0001909,3.363e-05,3.872e-06]; for j=1:length(SNR_dB) error_bit=0; baseband_out=round(rand(500000,2)); [m,n]=size(baseband_out); total_bit_num=m*n; %qpsk调制 loc = find(baseband_out==0); baseband_out(loc)=-1; map_out = baseband_out(:,1)+1i*baseband_out(:,2); %加噪声 receive_symbol=awgn(map_out,SNR_dB(j)); %qpsk解调 [m,n]=size(receive_symbol); receive_bit_sig=zeros(m,2*n); receive_bit_sig(:,1)=real(receive_symbol); receive_bit_sig(:,2)=imag(receive_symbol); d1=(receive_bit_sig(:,1)-1).^2+(receive_bit_sig(:,2)-1).^2; d2=(receive_bit_sig(:,1)-(-1)).^2+(receive_bit_sig(:,2)-1).^2; d3=(receive_bit_sig(:,1)-(-1)).^2+(receive_bit_sig(:,2)-(-1)).^2; d4=(receive_bit_sig(:,1)-1).^2+(receive_bit_sig(:,2)-(-1)).^2; for k=1:length(d1) shuzu=[d1(k) d2(k) d3(k) d4(k)]; [x, y]=find(shuzu==min(min(shuzu))); if y==1 receive_bit_sig(k,:)=[1 1]; elseif y==2 receive_bit_sig(k,:)=[-1 1]; elseif y==3 receive_bit_sig(k,:)=[-1 -1]; elseif y==4 receive_bit_sig(k,:)=[1 -1]; end end err_num=error_count(baseband_out,receive_bit_sig); error_bit=error_bit+err_num err_ber(j)=error_bit/total_bit_num; end semilogy(SNR_dB,err_ber,'r-o') title('仅加入高斯白噪声情况下的BER') legend('仅加噪声','标准bertool') xlabel('SNR')%x轴 ylabel('BER')%y轴 grid on%打开网格 hold on%保留原来的画线 semilogy(SNR_dB,BER_R,'g-+') legend('仅加噪声','标准bertool') xlabel('SNR') ylabel('BER') grid on hold on
评论
    相关推荐
    • QPSK调制解调程序
      一个MATLAB仿真的QPSK调制解调程序
    • qpsk调制解调
      运用Metlab对qpsk信号进行了调制解调
    • QPSK调制解调
      QPSK调制解调的matlab代码用于通信系统仿真
    • MATLAB仿真qpsk调制解调
      MATLAB仿真qpsk调制解调
    • QPSK调制解调MATLAB代码
      QPSK基本的调制解调MATLAB仿真,再无编码条件下,实行简单的调制解调,仿真结果有调制前的信号图,调制后的信号图,以及误码率
    • QPSK调制解调
      用MATLAB实现的QPSK调制解调函数,并通过验证,包含QPSK调制子函数,解调子函数及main函数
    • QPSK调制解调程序
      QPSK调制解调过程以及中间个步骤波形图及功率谱图 使用matlab编写
    • QPSK调制解调
      matlab 程序,生成QPSK信号以及解调 自己编写的 调试成功
    • QPSK调制解调代码
      QPSK调制解调过程以及中间个步骤波形图及功率谱图 使用matlab编写
    • QPSK matlab 调制解调代码
      国外比较经典的MATLAB 关于QPSK调制解调代码,每一模块都非常详细,程序书写较为规范,可作为初学者学习范例。对于想了解DQPSK工作原理的技术开发人员,也有一定帮助。