Commit before first big baudrate sweep
This commit is contained in:
@@ -202,19 +202,19 @@ classdef ChannelFreqResp < handle
|
||||
function plot(obj)
|
||||
|
||||
figure(55);
|
||||
clf;
|
||||
%clf;
|
||||
|
||||
Havg = obj.H;
|
||||
|
||||
%1)
|
||||
subplot(2,1,1);hold all;box on;title('Magnitude Freq. Response');
|
||||
subplot(2,1,1);hold on;box on;title('Magnitude Freq. Response');
|
||||
plot(obj.faxis/1e9, 20*log10(abs(obj.H_all)),'linewidth',0.1,'LineStyle','-','Color','#808080') ;
|
||||
xlim([0.2 .5*max(obj.faxis)*1e-9]);
|
||||
plot(obj.faxis/1e9, 20*log10(abs(Havg)),'LineWidth',2);
|
||||
grid on;
|
||||
|
||||
%2)
|
||||
subplot(2,1,2); hold all; box on; title('Phase Freq. Response');
|
||||
subplot(2,1,2); hold on; box on; title('Phase Freq. Response');
|
||||
plot(obj.faxis/1e9, angle(obj.H_all),'linewidth',0.1,'LineStyle','-','Color','#808080') ;
|
||||
plot(obj.faxis/1e9, unwrap(angle(Havg)),'LineWidth',2) ;
|
||||
xlim([0.2 .5*max(obj.faxis)*1e-9]);
|
||||
@@ -228,7 +228,7 @@ classdef ChannelFreqResp < handle
|
||||
Havg = Havg./mean(Havg(2:10));
|
||||
|
||||
%3)
|
||||
subplot(2,1,1); hold all; box on; title('Inverse Magnitude Freq. Response');
|
||||
subplot(2,1,1); hold on; box on; title('Inverse Magnitude Freq. Response');
|
||||
plot(obj.faxis/1e9, 20*log10(abs(1./Havg)),"LineWidth",2,"Color",[0.3467 0.5360 0.6907]) ;
|
||||
xlim([0.2 .5*max(obj.faxis)*1e-9]); grid on;
|
||||
ylim([-1 15]);
|
||||
@@ -236,12 +236,12 @@ classdef ChannelFreqResp < handle
|
||||
yline(3,'LineWidth',2,'LineStyle','--');
|
||||
|
||||
%4)
|
||||
subplot(2,1,2); hold all; box on; title('Inverse Phase Freq. Response');
|
||||
subplot(2,1,2); hold on; box on; title('Inverse Phase Freq. Response');
|
||||
plot(obj.faxis/1e9, unwrap(angle(1./Havg)),"LineWidth",2,"Color",[0.3467 0.5360 0.6907]) ;
|
||||
xlim([0.2 .5*max(obj.faxis)*1e-9]); grid on;
|
||||
|
||||
%%% plot for publication
|
||||
figure(98989);hold all;box on;title('Magnitude Freq. Response');
|
||||
figure(98989);hold on;box on;title('Magnitude Freq. Response');
|
||||
xlim([0.2 .5*max(obj.faxis)*1e-9]);
|
||||
ylim([-20, 2]);
|
||||
plot(obj.faxis/1e9, 20*log10(abs(Havg)),'LineWidth',2);
|
||||
|
||||
Reference in New Issue
Block a user