您现在的位置:首页 >> 通信 >> 内容

m基于5G-NR和MIMO的车载通信系统的matlab性能仿真,包括编码,信号调制,OFDM调制和M

时间:2023/8/4 1:51:37 点击:

  核心提示:0X_017m,包括程序操作录像...

1.完整项目描述和程序获取

>面包多安全交易平台:https://mbd.pub/o/bread/ZJyXkpps

>如果链接失效,可以直接打开本站店铺搜索相关店铺:

点击店铺

>如果链接失效,程序调试报错或者项目合作可以加微信或者QQ联系。

2.部分仿真图预览


3.算法概述

   车载通信系统是指在车辆之间或车辆与基础设施之间进行通信的技术。随着5G新无线通信技术(5G-NR)和多输入多输出(MIMO)技术的发展,车载通信系统的传输速率和传输可靠性得到了显著提高。本文将详细介绍基于5G-NR和MIMO的车载通信系统的MATLAB性能仿真,包括数学原理、实现过程和应用领域。

4.部分源码

        ofdm_modulated_data = ofdm_mod(reshaped_modulated_data, pilot_data); %% OFDM modulation

        

        [faded_data, channel_path_gain] =  mimo_fading_channel(ofdm_modulated_data); %% Adding fading effect on the data symbols

 

        transmitted_data = faded_data;

 

        signal_power = 10*log10(var(transmitted_data)); %% Calculating signal power

        noise_variance = (10.^(0.1.*(signal_power - snr_dB))) * noise_factor; %% Calculating noise variance

 

        recevied_data =  awgn_channel(transmitted_data, noise_variance); %% Passing the transmitted data symbols through AWGN channel

 

        %%% OFDM Demodulation

        ofdm_demodulated_data = ofdm_demod(recevied_data);

        [len, ~, ~] = size(ofdm_demodulated_data);

        ofdm_demodulated_data = ofdm_demodulated_data((margin + 1):(len - margin), :, :);

        %%% OFDM Demodulation

 

        %%% Initializing channel estimation parameter

        channel_estimation_parameter.N_r_blk = N_r_blk;

        channel_estimation_parameter.N_subc = N_subc;

        channel_estimation_parameter.N_sym_sub = N_sym_sub;

        channel_estimation_parameter.N_tant = N_tant;

        channel_estimation_parameter.N_rant = N_rant;

        channel_estimation_parameter.fft_length = fft_length;

        channel_estimation_parameter.cyclic_prefix_length = cyclic_prefix_length;

        channel_estimation_parameter.path_delay = path_delay;

        channel_estimation_parameter.sampling_frequency = sampling_frequency;

        channel_estimation_parameter.channel_path_gain = channel_path_gain;

        channel_estimation_parameter.number_of_paths = number_of_paths;

        channel_estimation_parameter.data_subcarrier_indices = data_subcarrier_indices;

        %%% Initializing channel estimation parameter

 

        channel_estimation_matrix = Ideal_Channel_Estimation(channel_estimation_parameter); %% Getting channel estimation matrix

 

        %%% Preparing the ofdm demodulated data symbols for equalization purpose

        processed_ofdm_demodulated_data = complex(zeros(N_r_blk * N_subc * N_sym_sub, N_rant));

        for i=1:N_rant

            tmp = ofdm_demodulated_data(:, :, i);

            tmp = reshape(tmp, N_r_blk * N_subc * N_sym_sub, 1);

            processed_ofdm_demodulated_data(:, i) = tmp;

        end

        %%% Preparing the ofdm demodulated data symbols for equalization purpose

 

        if eq_mode == 1

            equalized_data = ZF_Equalize(processed_ofdm_demodulated_data, channel_estimation_matrix);

        elseif eq_mode == 2

            equalized_data = MMSE_Equalize(processed_ofdm_demodulated_data, channel_estimation_matrix, noise_variance);

        end

            

        reshaped_equalized_data = equalized_data(:); %% Collapsing OFDM demodulated data symbols

 

        demodulated_data = demodulator_hard(reshaped_equalized_data); %% Demodulating 

 

        viterbi_decoded_data = viterbi_decoder(demodulated_data); %% Decoding the data bits using convolutional decoder

 

        viterbi_useful_data = viterbi_decoded_data(1:(N_bits_pframe + crc_bit)); %% Filtering the decoded data bits

 

        [crc_decoded_data, frame_error] = step(crc_24_detector, viterbi_useful_data); %% Detecting frame error using CRC detector

 

        %%% Counting error frames as well as total frames

        if frame_error == 1

            cnt2 = cnt2 + 1;

        end

        cnt1 = cnt1 + 1;

        %%% Counting error frames as well as total frames

0X_017m

---

作者:我爱C编程 来源:我爱C编程
本站最新成功开发工程项目案例
相关文章
相关评论
发表我的评论
  • 大名:
  • 内容:
本类固顶
  • 没有
  • FPGA/MATLAB商业/科研类项目合作(www.store718.com) © 2025 版权所有 All Rights Reserved.
  • Email:1480526168@qq.com 站长QQ: 1480526168