几个问题关于Matlab编写BPSK信号通过AWGN信道的仿真(在线跪求大神,不胜感激)!!!
1.Generateinputbitsd[n]usinguniformrandomnumbergenerator(either0or1).Thenumberofbitst...
1.Generate input bits d[n] using uniform random number generator (either 0 or 1). The number of bits to be transmitted must be left general and input by the user
2.Choose x[n]=-1 for d[n]=o and +1 for d[n]=1.
3.Generate a normal Gaussian noise (called additive white Gaussian noise AWGN in this context) and add it to x[n] to generate y[n]
4.Choose the output of the receiver d[n] (the estimate of the input) to be 1 if y[n]>0 and 0 otherwise.
5. Check the error in transmission by comparing the value of d[n] with d[n]. Set a counter to count the number of errors.
6. For the above range of SNR, calculate the BER estimate (ratio of the total numberof errors to the total number of transmitted bits) and compare it with the theoretical BER. (Hint: Ther theoretical BER can be calculated using the complementary error MATLAB function (erfc), and can be shown to be 0.5*erfc(sqrt(SNR))). Use semi-log plot to illustrate the comparison with the values of SNR range. Comment on the shape of the comparison graph. (Test the channal by transmitting 10000 random bits).
7.Provide plots for the generated AWGN that accompanied the 10000 bits when SNR=-3 dB,4 dB and 8 dB repectively. 展开
2.Choose x[n]=-1 for d[n]=o and +1 for d[n]=1.
3.Generate a normal Gaussian noise (called additive white Gaussian noise AWGN in this context) and add it to x[n] to generate y[n]
4.Choose the output of the receiver d[n] (the estimate of the input) to be 1 if y[n]>0 and 0 otherwise.
5. Check the error in transmission by comparing the value of d[n] with d[n]. Set a counter to count the number of errors.
6. For the above range of SNR, calculate the BER estimate (ratio of the total numberof errors to the total number of transmitted bits) and compare it with the theoretical BER. (Hint: Ther theoretical BER can be calculated using the complementary error MATLAB function (erfc), and can be shown to be 0.5*erfc(sqrt(SNR))). Use semi-log plot to illustrate the comparison with the values of SNR range. Comment on the shape of the comparison graph. (Test the channal by transmitting 10000 random bits).
7.Provide plots for the generated AWGN that accompanied the 10000 bits when SNR=-3 dB,4 dB and 8 dB repectively. 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询