登录
首页 » Matlab » 协同通信的MATLAB仿真代码

协同通信的MATLAB仿真代码

于 2022-08-08 发布 文件大小:53.89 kB
0 33
下载积分: 2 下载次数: 1

代码说明:

协同通信的MATLAB仿真代码 g = [ 1 1 1; 1 0 1 ]; x1 = round(rand(1, 112)); % info. bits 信息比特 CRC_CCITT = CRC_16(x1); x =[x1,CRC_CCITT] %加上CRC 比特信息 input = x; output1 = rsc_encode(g,input,1) t = poly2trellis(3,[7 5],7); % Define trellis. code = convenc(x,t)% Encode the data. err = sum(abs(code - output1(1:end-4))) ncode = awgn(code,4,"measured"); % Add noise. opmode = "trunc"; %操作模式 tblen1 = 5; decode1= vitdec(-ncode, t, tblen1, opmode, "unquant"); err1 = sum(abs(decode1 - x)) qcode = quantiz(ncode,[0.001,.1,.3,.5,.7,.9,.999]); add =zeros(1,96); qcode = [qcode,add]; tblen = 48; delay = tblen; % Traceback length decode2 = vitdec(qcode,t,tblen,"cont","soft",3); % Decode. %[number,ratio] = biterr(decode2(delay+1:end),x(1:end-delay)) %err2 = sum(abs(decode2 - x)) [number,ratio] = biterr(decode2(delay+1:end),x(1:end)) err2 = sum(abs(decode2(delay+1:end) - x))

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • As-Vs-SE
    Plots for Aspect Ratio to SE
    2011-11-29 02:54:10下载
    积分:1
  • bouc_wen
    利用已识别出的参数,得到Bouc-Wen模型的力-位移曲线。(Obtain the force-displacement curve of Bouc-Wen model, using the identified parameters.)
    2015-04-20 11:44:55下载
    积分:1
  • work
    有限差分,分析激光器内载流子浓度的分布。激光器有源区的自发发射光谱(Finite difference analysis of lasers with carrier concentration distribution. Laser active region of the spontaneous emission spectrum)
    2007-10-31 22:08:40下载
    积分:1
  • hausdorff32
    hausdorff距离的一种改进算法,是我自己编写的,用于提取焦点之后的图像配准(hausdorff distance of an improved algorithm, which I have written for the extraction of the focus after the image registration)
    2009-05-09 15:38:11下载
    积分:1
  • Source
    Semiconductor Fermi level
    2012-05-30 10:59:00下载
    积分:1
  • Hamming1511MAP
    Hamming 15, 11 Viterbi encoding and Decoding
    2013-09-21 19:35:25下载
    积分:1
  • zhaoyuan
    本程序用于寻找图像中的圆形,属于特征提取的类型(This procedure is used to find the image in the round, belongs to the type of feature extraction)
    2013-04-02 19:48:45下载
    积分:1
  • DTU
    地面站授权控制,通过DTU控制盒来实现对地面站,飞控和服务器进行信号控制与处理。(The ground station authorization control, through the DTU control box to realize to the ground station, flight control and server control and signal processing.)
    2015-01-12 23:56:26下载
    积分:1
  • zuixiaopingfang
    这个算法是matlab里基于最小平方对模拟运动模糊并加入高斯噪声复原算法(This algorithm is based on a least squares matlab in analog motion blur and add Gaussian noise restoration algorithm)
    2015-04-16 09:24:48下载
    积分:1
  • gek_2016
    说明:  一个简单的梯度增强克里金模型,使用虚数求梯度(gradient enhenced kriging)
    2019-04-08 10:42:11下载
    积分:1
  • 696518资源总数
  • 104326会员总数
  • 25今日下载