资源简介
IEEE802.15.4a信道模型的matlab代码
代码片段和文件信息
% modified S-V channel model evaluation
%%
% Written by Sun Xu Kim Chee Wee B. Kannan & Francois Chin on 22/02/2005
clear;
no_output_files = 1; % non-zero: avoids writing output files of continuous-time responses
num_channels = 100; % number of channel impulse responses to generate
randn(‘state‘12); % initialize state of function for repeatability
rand(‘state‘12); % initialize state of function for repeatability
cm_num=5; % outdoor LOS
% cm_num = 6; % outdoor NLOS cm_num controls the channel model: number from 1 to 8
% get channel model params based on this channel model number
[LamLmeanlambda_modelambda_1lambda_2betaGamgamma_0Kgamma ...
sigma_clusternlosgamma_risegamma_1chim0Kmsigma_m0sigma_Km ...
sfading_modem0_spstd_shdwkappafcfs] = uwb_sv_params_15_4a1( cm_num );
fprintf(1[‘Model Parameters\n‘ ...
‘Lam = %.4f Lmean = %.4f lambda_mode(FLAG) = %d\n‘ ...
‘lambda_1 = %.4f lambda_2 = %.4f beta = %.4f\n‘ ...
‘Gam = %.4f gamma0 = %.4f Kgamma = %.4f sigma_cluster = %.4f\n‘ ...
‘nlos(FLAG) = %d gamma_rise = %.4f gamma_1 = %.4f chi = %.4f\n‘ ...
‘m0 = %.4f Km = %.4f sigma_m0 = %.4f sigma_Km = %.4f\n‘ ...
‘sfading_mode(FLAG) = %d m0_sp = %.4f std_shdw = %.4f\n‘ ...
‘kappa = %.4f fc = %.4fGHz fs = %.4fGHz\n‘] ...
LamLmeanlambda_modelambda_1lambda_2betaGamgamma_0Kgamma ...
sigma_clusternlosgamma_risegamma_1chim0Kmsigma_m0sigma_Km...
sfading_modem0_spstd_shdwkappafcfs);
ts = 1/fs; % sampling frequency
% get a bunch of realizations (impulse responses)
[h_ctt_ctt0np] = uwb_sv_model_ct_15_4a1(LamLmeanlambda_modelambda_1 ...
lambda_2betaGamgamma_0Kgammasigma_clusternlosgamma_risegamma_1 ...
chim0Kmsigma_m0sigma_Kmsfading_modem0_spstd_shdwnum_channelsts);
% change to complex baseband channel
h_ct_len = size(h_ct 1);
phi = zeros(h_ct_len 1);
for k = 1:num_channels
phi = rand(h_ct_len 1).*(2*pi);
h_ct(:k) = h_ct(:k) .* exp(phi .* i);
end
% now reduce continuous-time result to a discrete-time result
[hNN] = uwb_sv_cnvrt_ct_15_4a( h_ct t_ct np num_channels ts );
if N > 1
h = resample(hN 1 N); % decimate the columns of hN by factor N
else
h = hN;
end
% add the frequency dependency
[h]= uwb_sv_freq_depend_ct_15_4a(hfcfsnum_channelskappa);
%********************************************************************
% Testing and ploting
%********************************************************************
% channel energy
channel_energy = sum(abs(h).^2);
h_len = length(h(:1));
t = [0:(h_len-1)] * ts; % for use in computing excess & RMS delays
excess_delay = zeros(1num_channels);
RMS_delay = zeros(1num_channels);
num_sig_paths = zeros(1num_channels);
num_sig_e_paths = zeros(1num_channels);
for k=1:num_channels
% determine excess delay and RMS delay
sq_h = abs(h(:k)).^2 / channel_energy(k);
t_norm = t - t0(k); % remove the randomized arrival time of first cluster
excess_delay(k) = t_norm * sq_h;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4645684 2009-06-08 13:58 uwb4apicture\los1.fig
文件 2778 2009-06-08 13:58 uwb4apicture\los2.fig
文件 2765 2009-06-08 13:58 uwb4apicture\los3.fig
文件 2021 2009-06-08 13:58 uwb4apicture\los4.fig
文件 2011 2009-06-08 13:59 uwb4apicture\los5.fig
文件 16486 2009-06-08 13:59 uwb4apicture\los6.fig
文件 7343729 2009-06-08 13:40 uwb4apicture\nlos1.fig
文件 2765 2009-06-08 13:40 uwb4apicture\nlos3.fig
文件 2026 2009-06-08 13:40 uwb4apicture\nlos4.fig
文件 2028 2009-06-08 13:40 uwb4apicture\nlos5.fig
文件 49991 2009-06-08 13:40 uwb4apicture\nlos6.fig
文件 2774 2009-06-08 13:40 uwb4apicture\nols2.fig
文件 7606 2009-06-08 13:49 uwb4apicture\uwb_4a1.m
文件 3769 2009-06-08 09:56 uwb4apicture\UWB_BAN_channel_v21.m
文件 1179 2009-05-31 15:20 uwb4apicture\uwb_sv_cnvrt_ct_15_4a.m
文件 1156 2009-06-08 10:07 uwb4apicture\uwb_sv_cnvrt_ct_15_4a1.m
文件 861 2009-05-31 15:22 uwb4apicture\uwb_sv_freq_depend_ct_15_4a.m
文件 591 2009-06-08 10:50 uwb4apicture\uwb_sv_freq_depend_ct_15_4a1.m
文件 5429 2009-06-08 19:19 uwb4apicture\uwb_sv_model_ct_15_4a1.m
文件 8845 2009-05-31 15:23 uwb4apicture\uwb_sv_params_15_4a.m
文件 7486 2009-06-08 13:56 uwb4apicture\uwb_sv_params_15_4a1.m
目录 0 2009-10-12 14:24 uwb4apicture
----------- --------- ---------- ----- ----
12111980 22
评论
共有 条评论