-
Notifications
You must be signed in to change notification settings - Fork 1
/
gen_ch.m
23 lines (16 loc) · 909 Bytes
/
gen_ch.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function [ch] = gen_ch(ts,fd)
% channel for ostn
% ts : sampling period
% fd : Doppler frequency
amp = [0.537747061131682,0.580192821360622,0.427144547794488,0.266990139025051,...
0.274773961788706,0.183008615575776,0.0735685173354311,0.0650097969718179,...
0.0302530730246707,0.0288896204286871,0.00648909470659391,0.00668867665030296];
t = [0,5.55555555555556e-05,0.00150000000000000,0.00155555555555556,...
0.00166666666666667,0.00633333333333333,0.00638888888888889,0.00661111111111111,...
0.00666666666666667,0.0143888888888889,0.0145000000000000,0.0147777777777778];
k = [43.4953178597041,52.4798276910440,19.9526231496888,119.314101725480,...
61.6750336949546,12.5892541179417,79.4328234724281,31.6227766016838,...
50.1187233627272,50.1187233627272,31.6227766016838,12.5892541179417];
pdb = 10*log10(amp.^2);
ch = ricianchan(ts, fd, k, t, pdb);
end