www.gusucode.com > OFDM_16QAM系统仿真源码程序 > OFDM_16QAM系统仿真源码程序/code/channel_parameter_Jakes.m
%====================== % Parameter calculation %====================== function [f_i_n,c_i_n,theta_i_n] = channel_parameter_Jakes(f_max,N_i) % Program for the computation of the discrete Doppler frequencies,Doppler coefficients and Doppler phases by using the Jakes power spectral density. % Method of exact Doppler spread (MEDS) is adopted % Parameters referred % N_i: number of harmonic functions % sigma_0_2: average power of the real deterministic Gaussian process mu_i(t) % f_max: maximum Doppler frequency sigma_0_2 = 1/2; % To assure sum(c_i_n) = 1 sigma_0=sqrt(sigma_0_2); n=(1:N_i)'; f_i_n=f_max*sin(pi/(2*N_i)*(n-1/2)); c_i_n=sigma_0*sqrt(2/(N_i))*ones(size(f_i_n)); theta_i_n=rand(N_i,1)*2*pi; % Randomly generated phase