Question: New Computer ClassChapter 2 Write a Program using c to solve this Problem. (See manual solved answer below.) A CDMA receiver gets the following chips:
New Computer ClassChapter 2
Write a Program using c to solve this Problem. (See manual solved answer below.)
A CDMA receiver gets the following chips: (-1 +1 -3 +1 -1 -3 +1 +1). Assuming the chip sequences defined in Fig. 2-28(a), which stations transmitted, and which bits did each one send? 
Answer:
S A = (+1 -1 +3 +1 -1 +3 +1 +1)/8 = 1
S B = (+1 -1 -3 -1 -1 -3 +1 -1)/8 = -1
S C = (+1 +1 +3 +1 -1 -3 -1 -1)/8 = 0
S D = (+1 +1 +3 -1 +1 +3 +1 -1)/8 = 1
So station A transmits 1, station B transmits -1, station C transmits nothing and station D transmits 1.
Write a Program using c to solve this Problem;
This is what I have so far..
#include
void write(int* ptr) int codePtr; for(codePtr=0; codePtr int calcDot(int* vector1, int* vector2) int codePtr, sum; sum = 0; for(codePtr=0; codePtr /* assume orthogonality */ /* Calculate every user's codes for both logic high and logic low. */ for(user=0; user /* Each user has three possibilities: -1 -> send a logic low 0 -> don't send anything +1 -> send a logic high */ combs = pow(3,USERS); for(data=0; data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
