cdmamatlab
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
GENERAL METHODOLOGIES
In my implementation, I adopted a step-by-step method, which makes implementation and debugging much easier. First I implemented following functions:
1. Matlab function ‘awgn.m’ adds additive white Gaussian noise to input signal.
2. Matlab function ‘awgn_complex.m’ adds complex additive white Gaussian noise to
input signal.
3. Matlab function ‘bingen.m’ generates random +1/-1 sequence with independent
identically distributed symbols.
4. Matlab function ‘fade.m’ generates Rayleigh fading.
5. Matlab function ‘fade_fs.m’ generates frequency selective Rayleigh fading.
6. Matlab function ‘fade_diversity.m’ generates two channels of Rayleigh fading.
7. Matlab function ‘fh.m’ generates orthogonal complex exponential matrix for slow
FH-MA scheme.
8. Matlab function ‘ds_mod.m’ do DS-SS modulation.
9. Matlab function ‘ds_demod.m’ do DS-SS demodulation.
10. Based on the above functions, I implemented all corresponding programs for each
problem in the final exam.
Detailed information about each problem in the final exam is presented on the following pages.
Κ
Problem 1
In this problem, I implemented the corresponding programs to simulate the performance of a DS-SS/BPSK communication system in the following scenarios:
1. In the AWGN channel
2. In the presence of pulsed noise jamming and AWGN
The average BER obtained by simulation is attached.
Discussion
1. From the simulation, we find that the performance curves are very close to the
theoretical results.
2. We also find that the performance curves are similar for different code lengths.
3. Averaging over more experiments and using a larger symbol size will produce
results closer to the theoretical results. The symbol size used in my simulation is 10,000.
Extra Credit Work ☺
1. Besides implementing all the required simulations, I also tried to use error-
correcting codes to reduce the average BER. The code used in my experiment is binary BCH code with code word length and message length equal to 15 and 5, respectively. The experimental result is attached.
2. I also simulated the performance of the system in barrage noise jamming and
AWGN. The experimental result is attached.
Discussion
1. From the experiment, we find that using error-correcting codes reduces the
average BER obviously, especially when bit energy to noise ratio is relatively large.
2. The performance of the system in barrage noise jamming and AWGN
environment is very close to the theoretical results.
Κ