• 大小: 5.23MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-14
  • 语言: Matlab
  • 标签:

资源简介

正交频分复用(OFDM)技术matlab实现仿真源代码

资源截图

代码片段和文件信息

% Analysis

disp(‘ ‘) disp(‘------------------------------------------------------------‘)
disp(‘Preparing Analysis‘)

figure(2) clf
if (input_type == 1) & (test_input_type == 1)
subplot(221) stem(data_in) title(‘OFDM 二进制输入数据‘);
subplot(223) stem(output) title(‘OFDM 二进制恢复数据‘)
else
subplot(221) plot(data_samples) title(‘OFDM 输入信号‘);
subplot(223) plot(output_samples) title(‘OFDM 恢复信号‘);
end
subplot(222) plot(xmit) title(‘OFDM发射‘);
subplot(224) plot(recv) title(‘OFDM接收‘);


% dig_x_axis = (1:length(QAM_tx_data))/length(QAM_tx_data);
%  figure(4) clf subplot(212)
%  freq_data = abs(fft(QAM_rx_data));
%  L = length(freq_data)/2;

dig_x_axis = (1:length(xmit))/length(xmit);
figure(3) clf

if channel_on ==1
num = [1 zeros(1 d1-1) a1 zeros(1 d2-d1-1) a2];
den = [1];
[H W] = freqz(num den 512);
mag = 20*log10(abs(H));
phase = angle(H) * 180/pi;

subplot(313)
freq_data = abs(fft(recv));
L = length(freq_data)/2;
plot(dig_x_axis(1:L) freq_data(1:L))
xlabel(‘OFDM接收端FFT‘)
axis_temp = axis;

subplot(311)
freq_data = abs(fft(xmit));
plot(dig_x_axis(1:L) freq_data(1:L)) axis(axis_temp)
title(‘OFDM发射端FFT‘)

subplot(312)
plot(W/(2*pi)mag)
ylabel(‘信道幅度响应‘)
else
subplot(212)
freq_data = abs(fft(recv));
L = length(freq_data)/2;
plot(dig_x_axis(1:L) freq_data(1:L))
xlabel(‘OFDM接收端FFT‘)
axis_temp = axis;

subplot(211)
freq_data = abs(fft(xmit));
plot(dig_x_axis(1:L) freq_data(1:L)) axis(axis_temp)
title(‘OFDM发射端FFT‘)
end

% if file_input_type == 4
%  figure(5)
%  subplot(211)
%  image(data_in);
%  colormap(map);
%  subplot(212)
%  image(output);
%  colormap(map);
% end

if do_QAM == 1  % analyze if QAM was done

figure(4) clf
if (input_type == 1) & (test_input_type == 1)
subplot(221) stem(data_in) title(‘QAM Binary Input Data‘);
subplot(223) stem(QAM_data_out) title(‘QAM Recovered Binary Data‘)
else
subplot(221) plot(data_samples) title(‘QAM 输入信号‘);
subplot(223) plot(QAM_output_samples) title(‘QAM 恢复信号‘);
end
subplot(222) plot(QAM_tx_data) title(‘发射端 QAM‘);
subplot(224) plot(QAM_rx_data) title(‘接收端 QAM‘);

dig_x_axis = (1:length(QAM_tx_data))/length(QAM_tx_data);
figure(5) clf

if channel_on ==1
subplot(313)
freq_data = abs(fft(QAM_rx_data));
L = length(freq_data)/2;
plot(dig_x_axis(1:L) freq_data(1:L))
xlabel(‘QAM接收端FFT‘)
axis_temp = axis;

subplot(311)
freq_data = abs(fft(QAM_tx_data));
  plot(dig_x_axis(1:L)freq_data(1:L)) axis(axis_temp)
title(‘QAM发射端FFT‘)

subplot(312)
plot(W/(2*pi)mag)
ylabel(‘信道幅度响应‘)
else
subplot(212)
freq_data = abs(fft(QAM_rx_data));
L = length(freq_data)/2;
plot(dig_x_axis(1:L) freq_data(1:L))
title(‘QAM接收端FFT‘)
axis_temp = axis;

subplot(211)
freq_data = abs(fft(QAM_tx_data));
  plot(dig_x_axis(1:L)freq_data(1:L)) axis(axis_temp)
title(‘QAM发射端FFT‘)
end

% Pl

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-03 13:40  ofdm系统matlab仿真源代码\
     文件       13264  2005-06-17 08:32  ofdm系统matlab仿真源代码\DDP.fig
     文件        4843  2005-06-14 21:38  ofdm系统matlab仿真源代码\DDP.m
     文件     5459300  2004-04-29 12:18  ofdm系统matlab仿真源代码\Demo.rar
     文件         524  2001-04-23 14:29  ofdm系统matlab仿真源代码\OFDM.m
     文件         428  2005-06-15 08:10  ofdm系统matlab仿真源代码\OFDM_out.wav
     文件         522  2005-06-16 15:47  ofdm系统matlab仿真源代码\OFDM_text_out.txt
     文件        4691  2001-04-23 14:29  ofdm系统matlab仿真源代码\QAM.m
     文件         428  2005-06-15 08:10  ofdm系统matlab仿真源代码\QAM_out.wav
     文件         531  2005-06-16 14:18  ofdm系统matlab仿真源代码\QAM_text_out.asv
     文件         524  2005-06-16 15:47  ofdm系统matlab仿真源代码\QAM_text_out.txt
     文件        2857  2001-04-23 14:30  ofdm系统matlab仿真源代码\a_filter_design.m
     文件        5157  2005-06-01 22:26  ofdm系统matlab仿真源代码\analysis.m
     文件        4168  2001-04-23 14:30  ofdm系统matlab仿真源代码\basicgui_win.m
     文件         219  2001-04-23 14:30  ofdm系统matlab仿真源代码\bin2eight.m
     文件         227  2001-04-23 14:30  ofdm系统matlab仿真源代码\bin2pol.m
     文件       28848  2004-04-13 20:45  ofdm系统matlab仿真源代码\buaa.jpg
     文件         407  2001-04-23 14:30  ofdm系统matlab仿真源代码\ch.m
     文件         162  2001-04-23 14:30  ofdm系统matlab仿真源代码\ch_clipping.m
     文件         210  2001-04-23 14:30  ofdm系统matlab仿真源代码\ch_multipath.m
     文件         265  2001-04-23 14:30  ofdm系统matlab仿真源代码\ch_noise.m
     文件         217  2001-04-23 14:30  ofdm系统matlab仿真源代码\eight2bin.m
     文件        8832  2005-06-15 07:55  ofdm系统matlab仿真源代码\help_DDP.fig
     文件        2871  2004-04-21 13:24  ofdm系统matlab仿真源代码\help_DDP.m
     文件         431  2001-04-23 14:30  ofdm系统matlab仿真源代码\pol2bin.m
     文件        1001  2001-04-23 14:30  ofdm系统matlab仿真源代码\read.m
     文件         519  2001-04-23 14:30  ofdm系统matlab仿真源代码\rx.m
     文件         222  2001-04-23 14:30  ofdm系统matlab仿真源代码\rx_chunk.m
     文件         977  2001-04-23 14:30  ofdm系统matlab仿真源代码\rx_dechunk.m
     文件        2969  2005-06-14 17:18  ofdm系统matlab仿真源代码\setupw.m
     文件        2973  2005-06-14 17:51  ofdm系统matlab仿真源代码\setupy.m
............此处省略22个文件信息

评论

共有 条评论