本站所有资源均为高质量资源,各种姿势下载。
The instructions for simulation are as follows:
1. Begin by running the "jakesmodel.m" file.
2. Next, run the "bpsk_spread.m" file.
3. During the first run of "bpsk_spread.m", there will be no Rayleigh fading due to the corresponding code being commented out.
4. The performance from the first run will be stored in "BER_awgn".
5. Uncomment the Rayleigh fading code in "bpsk_spread.m" file.
6. Comment out "BER_awgn" (line 112) and uncomment the "BER_ray" variable at the same time.
7. Run the simulation.
To compare the performances of the receiver using DSSS, plot the "BER_awgn" and "BER_ray" using the following code:
```
semilogy([1:8], BER_awgn(1:8), "g*");
hold on;
semilogy([1:8], BER_ray(1:8), "-.b*");
hold on;
grid on;
```
Please note that there are two files in the zip folder: "bpsk_spread.m" and "jakesmodel.m".