calculating the voltage of spreading code and interpreting data

1 visualización (últimos 30 días)
I am struggling in two things. First is to calculate the voltage of a signal second is the interpretation of either 0 or 1 depending on the highest consistency. I have an spreading code example which I have to convert it into matlab code. suppose if I have a data1 = 0 and the spreading code used on this data 1 is [1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0] in order to spread the data 1 i will use xnor function in matlab to get the spread version of data1 written code is as follows: >> data1 = 0; >> spread_code_1 = [1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0]; >> spread_1 = xor(data1,spread_code_1);
now if I have to interpret what would be the voltage of these bits how would I do it in matlab?? suppose if I am getting -1.75 +1.75 (total 16 such values for 16 bits of spread_1) how should I write a program that would help me get a single value i.e either 1 or 0 at the end the idea to interpret it theoretically is if I have more +ve numbers I will say the final value is a signal '1' or vice versa

Respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by