new plots for Diss. Mostly AI gen. Few changes in actual codebase
This commit is contained in:
@@ -5,25 +5,32 @@ fdac = 256e9;%fsym;
|
||||
fadc = 256e9;
|
||||
fsym = ([32:16:240].*1e9);
|
||||
|
||||
%fsym = 160e9;
|
||||
% 1) PRBS Generation
|
||||
O = 18; %order of prbs
|
||||
N = 2^(O-1); %length of prbs
|
||||
[~,seed] = prbs(O,1); %initialize first seed of prbs
|
||||
bitpattern=[];
|
||||
% %fsym = 160e9;
|
||||
% % 1) PRBS Generation
|
||||
% O = 18; %order of prbs
|
||||
% N = 2^(O-1); %length of prbs
|
||||
% [~,seed] = prbs(O,1); %initialize first seed of prbs
|
||||
% bitpattern=[];
|
||||
%
|
||||
% for i = 1:log2(M)
|
||||
% [bitpattern(:,i),seed] = prbs(O,N,seed);
|
||||
% end
|
||||
%
|
||||
%
|
||||
% if M == 6
|
||||
% bitpattern = reshape(bitpattern,[],1);
|
||||
% bitpattern = bitpattern(1:end-mod(length(bitpattern),5));
|
||||
% end
|
||||
|
||||
for i = 1:log2(M)
|
||||
[bitpattern(:,i),seed] = prbs(O,N,seed);
|
||||
end
|
||||
bits = Signalgenerator( ...
|
||||
"form", signalform.prms, ...
|
||||
"M", M, ...
|
||||
"order", 17).process();
|
||||
% symbols = PAMmapper(4, 0).map(bits);
|
||||
|
||||
|
||||
if M == 6
|
||||
bitpattern = reshape(bitpattern,[],1);
|
||||
bitpattern = bitpattern(1:end-mod(length(bitpattern),5));
|
||||
end
|
||||
|
||||
% 2 ) Build Inf. signal class
|
||||
bits = Informationsignal(bitpattern);
|
||||
% bits = Informationsignal(bitpattern);
|
||||
|
||||
% 5) AWG (lowpass, quantization, sample and hold)
|
||||
kover = 8;
|
||||
@@ -131,7 +138,7 @@ ylabel("Vpp in V")
|
||||
legend
|
||||
ylim([0.3 1.4])
|
||||
|
||||
|
||||
%%
|
||||
figure(7)
|
||||
hold on
|
||||
scatter(fsym.*1e-9,powerlist1,'DisplayName','M8199B','MarkerFaceColor',cols(1,:),'MarkerEdgeColor',cols(1,:),'LineWidth',2);
|
||||
|
||||
Reference in New Issue
Block a user