Showing
1 changed file
with
24 additions
and
0 deletions
constellation/constellation/receiver.cpp
0 → 100644
1 | +#include"receiver.h" | ||
2 | +#include<cstdlib> | ||
3 | +using namespace std; | ||
4 | + | ||
5 | +void Creceiver::demodulate() | ||
6 | +{ | ||
7 | + int num = 0; | ||
8 | + for (int i = 0; i < 500; i++) { | ||
9 | + for (int k = 0; k < 20; k++) { | ||
10 | + Temp[k]=r[i * 20 + k] ; | ||
11 | + num++; | ||
12 | + } | ||
13 | + matrixmult(1, 20, 1, Temp, c0, receiver); | ||
14 | + At_[i] = receiver[0]; | ||
15 | + | ||
16 | + matrixmult(1, 20, 1, Temp, c1, receiver); | ||
17 | + Bt_[i] = receiver[0] ; | ||
18 | + | ||
19 | + } | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment