首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Matlab > 协同通信的MATLAB仿真代码

协同通信的MATLAB仿真代码

  • 资源大小:53.89 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: Matlab

资 源 简 介

协同通信的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))

文 件 列 表

add2statistic.m
add_channel_effect.asv
add_channel_effect.m
ber2snr.m
ber2SNR_DAF.m
ber.m
ber_2_senders.m
bin_state.m
bit2symbol.m
calculate_signal_parameter.m
coded_data.asv
coded_data.m
crc.m
CRC_16.m
data_decode.asv
data_decode.m
data_decode_df.m
demultiplex.m
doc_softdecision.mdl
encode_bit.m
encoderm.m
estimate_direct_channel_SNR.m
estimate_via_channel_SNR.m
generate_channel_structure.m
generate_coded_data.asv
generate_coded_data.m
generate_relay_structure.m
generate_rx_structure.m
generate_signal_structure.m
generate_statistic_structure.m
generate_turbo_coded.m
int_state.m
logmapo.asv
logmapo.m
main1003.asv
main1003.m
main1003.m~
main1012.m
main.m
prepare_relay2send.asv
prepare_relay2send.m
q.m
qinv.m
reduced.m
rsc_encode.m
RSC_test.asv
RSC_test.m
rx_combine.asv
rx_combine.m
rx_correct_phaseshift.m
rx_reset.m
show_statistic.asv
show_statistic.m
snr2ber.m
soft_decision.asv
soft_decision.m
soft_decode.m
sova0.m
symbol2bit.m
test.m
trellis.asv
trellis.m
vitdec_test.m

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP