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

协同通信的MATLAB仿真代码

于 2022-08-08 发布 文件大小:53.89 kB
0 64
下载积分: 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 个回复

  • MATLAB_programming_algorithm_source_of_Ordinary_Di
    MATLAB程序设计之常微分方程算法源码MATLAB programming algorithm source of Ordinary Differential Equations(MATLAB programming algorithm for ordinary differential source MATLAB programming algorithm source of Ordinary Differential Equations)
    2010-08-02 11:12:45下载
    积分:1
  • Chapter_6
    The Finite Difference Time Domain Method for Electromagnetics With MATLAB Simulations Atef Elsherbeni and Veysel Demir Chapter 6
    2009-04-22 01:23:45下载
    积分:1
  • Pdf_files_for_OFDM
    OFDM Applications containing pdf files
    2010-10-23 00:30:59下载
    积分:1
  • PASTandPASTd
    宾.杨(Bin Yang)的PAST算法(投影近似子空间跟踪算法)原文翻译.(PAST rotation invariance is used to solve the angle signal, This algorithm uses the minimum two multiplication to estimate the incidence angle)
    2009-05-10 19:42:39下载
    积分:1
  • yue
    潮流计算程序,本程序是基于牛顿拉夫逊算法的潮流计算子程序(powerload)
    2010-05-20 10:35:10下载
    积分:1
  • DigitalImageProcessing-4
    Digital Image Processing Using Matlab Additional Material
    2011-05-27 22:31:53下载
    积分:1
  • 一个18个智能优化算法的测试函数例程
    通过matlab代码,调试通过可以使用,isodata 迭代自组织的数据分析,DC-DC部分采用定功率单环控制,仿真图是速度、距离、幅度三维图像,在MATLAB中求图像纹理特征。
    2023-06-10 02:45:03下载
    积分:1
  • potentialfield
    机器人路径规划程序,matlab编程。具有参考性。(Robot path planning procedures, matlab programming.)
    2013-03-10 10:34:53下载
    积分:1
  • SemiNonLocalMean
    利用semi-nonlocal-mean filter 去噪(semi-nonlocal-mean filter)
    2013-05-03 23:20:30下载
    积分:1
  • test
    在matlab环境下应用支持向量机做回归的使用实例(In the matlab environment support vector machine regression using examples do)
    2015-04-15 16:00:32下载
    积分:1
  • 696516资源总数
  • 106459会员总数
  • 0今日下载