Dear debeelab,
Thanks for your reply and sharing the code. In your code you are using carrier. I just want to simulate simple DS-CDMA for BPSK in AWGN channel. I have written a code and i can decode signals for different users when there is no noise. I am simulating for 8 users and using Walsh code. Now when I simulate using AWGN channel, the problem is that when there are all the eight users and when there are less users (say 1, 2 or 3 etc.) present in the system, the BER curve is the same. But it should give better BER performance when there are less users as compared to the all 8 users. I know I am doing some mistake in decoding after noise addition but I don't know what is that mistake. I am attaching my code also, if you or someone else can help me in decoding the signal properly, I'll be thankful to you.
Please if anyone can help me understand this concept!!!!
Thanks