Tasks done
- Generating Walsh code
Sample Output
Give value of n: 8
Walsh code 1: 0 0 0 0 0 0 0 0
Walsh code 2: 0 1 0 1 0 1 0 1
Walsh code 3: 0 0 1 1 0 0 1 1
Walsh code 4: 0 1 1 0 0 1 1 0
Walsh code 5: 0 0 0 0 1 1 1 1
Walsh code 6: 0 1 0 1 1 0 1 0
Walsh code 7: 0 0 1 1 1 1 0 0
Walsh code 8: 0 1 1 0 1 0 0 1
Antipodal code 1: 1 1 1 1 1 1 1 1
Antipodal code 2: 1 0 1 0 1 0 1 0
Antipodal code 3: 1 1 0 0 1 1 0 0
Antipodal code 4: 1 0 0 1 1 0 0 1
Antipodal code 5: 1 1 1 1 0 0 0 0
Antipodal code 6: 1 0 1 0 0 1 0 1
Antipodal code 7: 1 1 0 0 0 0 1 1
Antipodal code 8: 1 0 0 1 0 1 1 0
- Two user CDMA system simulation in matlab
Your Lab report should include
- Walsh Code Generation
a. Code to generate n n-bit orthogonal and n n-bit antipodal code.
N must be taken as input. The output must print all the orthogonal and antipodal codes.
b. The output generated for n=
i. 2
ii. 4
iii. 8
c. The orthogonal and antipodal matrix for n=
i. 16
ii. 32
iii. 64
hint: For the matrix use variable editor to copy the matrix -
Two user CDMA system simulation in matlab
a. The code for 2 user simulation is shown in class. The code is available in the website.
Explain the code in your lab report.
Also show all the graphs for user input (If there is any error, describe the error in your report and explain why the error happened)
i. User1= [1 0 1 1 0 0 0 1] and User2= [1 1 0 1 1 0 0 1]
ii. User1= [1 0 1 1 0 1 1 1] and User2= [1 1 0 1 1 1 0 1]
iii. User1= [1 0 1 1 1] and User2= [1 1 0 0 1]
iv. User1= [0 0 0 1] and User2= [1 0 0 0 1]
b. Modify the code for n users, where n will be taken as input.
add your code in your lab report. -
Your lab report should include a discussion outlining the learnings from this lab.
Homework
1. Simulate a two user TDMA system
Attachments
- Matlab file for the 2 user CDMA system