4.0
Other
% plot_Jakes_model.m
clear all, %close all
% Parameters
fd=100; Ts=1e-6; % Doppler frequency and Sampling time
M = 2^12; t=[0:M-1]*Ts; f=[-M/2:M/2-1]/(M*Ts*fd);
Ns = 50000; t_state=0;
% Channel generation
[h,t_state]=Jakes_Flat(fd,Ts,Ns,t_state,1,0);
figure();
%subplot(311),
plot([1:Ns]*Ts,10*log10(abs(h))),
%title(['Jakes Model, f_d=',num2str(fd),'Hz, T_s=',num2str(Ts),'s']);
title(['Jakes Model, f_d=',num2str(fd),'Hz']);
axis([0 0.05 -30 10]), xlabel('time[s]'), ylabel('Magnitude[dB]')
% subplot(323), hist(abs(h),50);
% title(['Jakes Model, f_d=',num2str(fd),'Hz, T_s=',num2str(Ts),'s']);
% xlabel('Magnitude') , ylabel('Occasions')
% subplot(324), hist(angle(h),50);
% title(['Jakes Model, f_d=',num2str(fd),'Hz, T_s=',num2str(Ts),'s']);
% xlabel('Phase[rad]'), ylabel('Occasions')
% Autocorrelation of channel
matlab
信道
建模
多普勒
No comment