

%Create data, code it, turn it into signal, demodulate, and decode

%M = 3 data
%Channels = 1/rs*2^m*nchan = 4000 ... m=3, ts = 10e-3.. numcahns = 5
dat = gendata(3, 5, 300, 'test.dat');
codeddat = code(dat, 3, 7, 3);
sig = createsig(codeddat, 3, 10e-3, 1, 8e3, 40e3);


%Sig is finished

%Demod signal
outcode = demod(sig, 3, 5, 10e-3, 1, 8e3, 40e3);
outdat = decode(outcode, 3, 7, 3);
