1、%*beginning of file*%cnv_encd.m%卷积码编码程序function output=cnv_encd(G,k0,input)% cnv_encd(G,k0,input),k0 是每一时钟周期输入编码器的 bit 数,% G 是决定输入序列的生成矩阵,它有 n0 行 L*k0 列 n0 是输出 bit 数,% 参数 n0 和 L 由生成矩阵 G 导出,L 是约束长度。L 之所以叫约...
1、1、卷积码编码function output=cnv_encd(input%output=cnv_encd(g,k0,input 卷积码编码函数%g 生成矩阵%k0 输入码长%input 输入信源序列%output 输出卷积编码序列g=1 1 1;1 0 1;编码矩阵k0=1;input=1 1 0 1;if rem(length(input,k0>0input=input,zeros(size(1:k0-rem(length(input,k0;endn=...
%***beginning of file*** %cnv_encd.m %卷积码编码程序 functionoutputcnv_encd(G,k0,input % cnv_encd(G,k0,input),k0是每一周期输入编码器的bit数, % G是决定输入序列的生成矩阵,它有行L*k0列n0是输出bit数, %参数n0和L由生成矩阵G导出,L是约束。L之所以叫约束长度 %是因为编码器每...
function [output]=cnv_encd(input) %output=cnv_encd(g,k0,input) 卷积码编码函数 %g 生成矩阵 %k0 输入码长 %input 输入信源序列 %output 输出卷积编码序列 g=[1 1 1;1 0 1];编码矩阵 k0=1; input=[1 1 0 1]; if rem(length(input),k0)>0 ...
right_channel_output=cnv_encd(mybit); lgth=length(right_channel_output); BER=zeros(1,lgth); cumulated_metric_table=zeros(1,lgth); decoder_output_table=zeros(lgth,lgth/2-2); channel_output_table=zeros(lgth,lgth);% 模拟信道误码 for z=1:lgth % 产生随机误码 % channel=zeros(1,lgth); ...
%cnv_encd.m %卷积码编码程序 functionoutput=cnv_encd(G,k0,input) %cnv_encd(G,k0,input),k0是每一时钟周期输入编码器的bit数, %G是决定输入序列的生成矩阵,它有n0行L*k0列n0是输出bit数, %参数n0和L由生成矩阵G导出,L是约束长度。L之所以叫约束长度 ...
Rake接收机:findpeak.m;MRC_combine.m;MRC_Rake.m;n_upsample.m;selectpath.m 其他:cnv_encd.m;dssignal.m;Eb_halfcos.m;waveshape.m;halfcos_generator.m; metric.m;nxt_stat.m;sim_main.m;spreadgren.m;test_code.m;training_ds.m; uwbsim.m;vit_test.m点...
交织码的MATLAB代码
function [output]=cnv_encd(input) %output=cnv_encd(g,k0,input) 卷积码编码函数 %g 生成矩阵 %k0 输入码长 %input 输入信源序列 %output 输出卷积编码序列 g=[1 1 1;1 0 1];编码矩阵 k0=1; input=[1 1 0 1]; if rem(length(input),k0)>0 input=[input,zeros(size(1:k0-rem(length(input...
程序代码 1) 主程序 k0=2; g=[0 0 1 0 1 0 0 1;0 0 0 0 0 0 0 1;1 0 0 0 0 0 0 1]; input=[1 0 0 1 1 1 0 0 1 1 0 0 0 0 1 1 1]; output=(g, k0,input); 2) 函数 function output=cnv_encd(g,k0,input) % Check to see if extra zero-padding is necessary...