Build out MATLAB test framework and core integration coverage
This commit is contained in:
23
projects/Dissertation/minimal_example.m
Normal file
23
projects/Dissertation/minimal_example.m
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
M = 4;
|
||||
randkey = 1;
|
||||
order = 17;
|
||||
|
||||
N = 2^(order-1); %length of prbs
|
||||
bitpattern = zeros(N,log2(M));
|
||||
s = RandStream('twister','Seed',randkey);
|
||||
for i = 1:log2(M)
|
||||
bitpattern(:,i) = randi(s,[0 1], N, 1);
|
||||
end
|
||||
|
||||
if M == 6
|
||||
bitpattern = reshape(bitpattern',[],1);
|
||||
bitpattern = bitpattern(1:end-mod(length(bitpattern),5));
|
||||
end
|
||||
|
||||
bits = Informationsignal(bitpattern);
|
||||
% bits = bits.logbookentry(['Generate bit stream with size: ', num2str(size(bitpattern))]);
|
||||
|
||||
symbols = PAMmapper(M,0).map(bits);
|
||||
|
||||
PAMmapper(M,0).showBitMapping
|
||||
Reference in New Issue
Block a user