资源简介
协作通信系统中DF协议下的系统仿真,可以实现中断概率的分析。
代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%10/13/2008 zhangsong
%一个具有差错检测的DF仿真程序
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
echo off;clear all;close all;clc;
tic
N=10;
L=65; %一帧长度
BerSnrTable=zeros(205);
for snr=0:25
BerSnrTable(snr+11) = snr;
sig=1/sqrt(10^(snr/10));
%temp=0;
%temp1=0;
for i=1:N
BitsTx = floor(rand(1L)*2);
P=mean(abs(BitsTx(:)).^2);
%BitsTxcrc=CrcEncode(BitsTx);
BitsTxcnv=cnv( BitsTx);
Mod8Tx=mod_8psk(BitsTxcnv);
M=length(Mod8Tx);
%以下为假设信道模型和噪声模型,由于本次仿真重点不在于此,所以做以下简化
H1d=RayleighCH();
H12=RayleighCH();
H2d=RayleighCH();
Z1d=randn(1M)+j*randn(1M);
Z12=randn(1M)+j*randn(1M);
Z2d=randn(
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2678 2009-03-20 14:51 Cooperation diversity DF\AF.asv
文件 2678 2009-03-20 14:43 Cooperation diversity DF\AF.m
文件 99 2008-10-06 09:06 Cooperation diversity DF\bin2deci.m
文件 1229 2008-10-06 09:07 Cooperation diversity DF\cnv.m
文件 756 2008-10-12 13:14 Cooperation diversity DF\CrcDecode.m
文件 577 2008-10-09 11:19 Cooperation diversity DF\CrcEncode.m
文件 188 2008-10-06 09:06 Cooperation diversity DF\deci2bin.m
文件 812 2008-10-06 09:06 Cooperation diversity DF\demod_8psk.m
文件 470 2008-10-06 09:06 Cooperation diversity DF\metric.m
文件 437 2008-10-06 09:06 Cooperation diversity DF\mod_8psk.m
文件 297 2008-10-06 09:06 Cooperation diversity DF\nxt_stat.m
文件 467 2008-10-06 09:11 Cooperation diversity DF\RayleighCH.m
文件 3896 2008-10-06 09:07 Cooperation diversity DF\viterbi.m
文件 22 2008-10-14 20:57 Cooperation diversity DF\程序说明.txt
目录 0 2009-03-31 19:42 Cooperation diversity DF
----------- --------- ---------- ----- ----
14606 15
评论
共有 条评论