Professional Documents
Culture Documents
y = Abs + σn (4)
where
y = [y1 y2 · · · yN ]T
s = [s1 s2 · · · sN ]T = [(−1)c1 (−1)c2 · · · (−1)cN ]T
n = [n1 n2 · · · nN ]T , ni ∼ N (0, 1)
1
• K = 3 users
• Ak ∼ U(0, 1) (uniform distribution),
• bk ’s independent binary random variables,
• sk are Gold codes of length N = 31 (You can download a matrix
containing 3 Gold codes from: ”http://www.cs.tut.fi/kurssit/TLT-
5606/G.mat”, Save the file in you working directory using the browser
and load it in Matlab (load G.mat). You will see a variable G in your
command window. )
• SNR (wrt. weakest user) equals 20 dB.
(c) To gain statistical reliability draw the average spectra based on mul-
tiple independent symbols (under the same channel conditions).
3. The last task is to examine the effect of (fixed) multipaths on delay spec-
trums of the users. The fixed multipath model is given as simple general-
ization of (5):
XK XL
y= Ak,l bk sk (τk,l ) + σn (9)
k=1 l=1
where L is the number of paths and Ak,l and τk,l are received amplitude
and delay of k-th user’s l-th path, respectively.
(a) Modify the earlier multi-user data generation in accordance with (9).
You can assume integer path delays (that is, integer multiples of the
chip duration) drawn randomly from {0, . . . , N − 1} (use randint
command). Take the other parameters parameters as defined in the
first task.
(b) Repeat the second task with multipath data.