임준영

change channel.cpp

#include"channel.h"
#include<cstdlib>
using namespace std;
void Cchannel::AWGN() {
ofstream myout;
myout.open("channel.txt");
default_random_engine generator;
normal_distribution<double> dist(0.0, No);
for (int k = 0; k < Nbits / Nbitspersymbol * Nsamplespersymbol; k++)
n[k] = dist(generator);
matrixadd(1, Nbits / Nbitspersymbol * Nsamplespersymbol, s, n, r);
for (int i = 0; i < Nbits / Nbitspersymbol * Nsamplespersymbol; i++)
{
myout << r[i] << endl;
}
myout.close();
}
\ No newline at end of file