Export the report to PDF

This commit is contained in:
2020-11-03 11:08:16 +01:00
parent 7b472d199c
commit 892989585b
8 changed files with 782 additions and 991 deletions

View File

@@ -21,7 +21,7 @@ Kppf.OutputName = {'Uch', 'Ucv'};
figure;
% Magnitude
ax1 = subaxis(2,1,1);
ax1 = subplot(2,1,1);
hold on;
plot(freqs, abs(squeeze(freqresp(G, freqs, 'Hz'))), 'k-');
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
@@ -30,7 +30,7 @@ ylabel('Magnitude [dB]');
hold off;
% Phase
ax2 = subaxis(2,1,2);
ax2 = subplot(2,1,2);
hold on;
plot(freqs, 180/pi*angle(squeeze(freqresp(G, freqs, 'Hz'))), 'k-');
set(gca,'xscale','log');

View File

@@ -23,7 +23,7 @@ K.OutputName = {'Uch', 'Ucv'};
figure;
% Magnitude
ax1 = subaxis(2,1,1);
ax1 = subplot(2,1,1);
hold on;
plot(freqs, abs(squeeze(freqresp(Kh*sys('Rh', 'Uch'), freqs, 'Hz'))), 'DisplayName', '$L_h = K_h G_{d,h}^{-1} G_{\frac{V_{p,h}}{\tilde{U}_{c,h}}} G_{i,h} $');
plot(freqs, abs(squeeze(freqresp(Kv*sys('Rv', 'Ucv'), freqs, 'Hz'))), 'DisplayName', '$L_v = K_v G_{d,v}^{-1} G_{\frac{V_{p,v}}{\tilde{U}_{c,v}}} G_{i,v} $');
@@ -34,7 +34,7 @@ hold off;
legend('location', 'northeast');
% Phase
ax2 = subaxis(2,1,2);
ax2 = subplot(2,1,2);
hold on;
plot(freqs, 180/pi*angle(squeeze(freqresp(Kh*sys('Rh', 'Uch'), freqs, 'Hz'))));
plot(freqs, 180/pi*angle(squeeze(freqresp(Kv*sys('Rv', 'Ucv'), freqs, 'Hz'))));

View File

@@ -46,7 +46,7 @@ ht_4 = ht_s{4};
% Time domain plots
figure;
ax1 = subaxis(2, 2, 1)
ax1 = subplot(2, 2, 1)
hold on;
plot(ht_1.t, 1e9*ht_1.Va);
hold off;
@@ -54,7 +54,7 @@ ylabel('Displacement [nm]');
set(gca, 'XTickLabel',[]);
title('OL');
ax2 = subaxis(2, 2, 2)
ax2 = subplot(2, 2, 2)
hold on;
plot(ht_2.t, 1e9*ht_2.Va);
hold off;
@@ -62,7 +62,7 @@ set(gca, 'XTickLabel',[]);
set(gca, 'YTickLabel',[]);
title('OL + CU');
ax3 = subaxis(2, 2, 3)
ax3 = subplot(2, 2, 3)
hold on;
plot(ht_3.t, 1e9*ht_3.Va);
hold off;
@@ -70,7 +70,7 @@ xlabel('Time [s]');
ylabel('Displacement [nm]');
title('CL + CU');
ax4 = subaxis(2, 2, 4)
ax4 = subplot(2, 2, 4)
hold on;
plot(ht_4.t, 1e9*ht_4.Va);
hold off;
@@ -88,7 +88,7 @@ linkaxes([ax1 ax2 ax3 ax4], 'xy');
figure;
ax1 = subaxis(2, 2, 1)
ax1 = subplot(2, 2, 1)
hold on;
plot(ht_1.t, ht_1.Vph);
plot(ht_1.t, ht_1.Vpv);
@@ -97,7 +97,7 @@ ylabel('Voltage [V]');
set(gca, 'XTickLabel',[]);
title('OL');
ax2 = subaxis(2, 2, 2)
ax2 = subplot(2, 2, 2)
hold on;
plot(ht_2.t, ht_2.Vph);
plot(ht_2.t, ht_2.Vpv);
@@ -106,7 +106,7 @@ set(gca, 'XTickLabel',[]);
set(gca, 'YTickLabel',[]);
title('OL + CU');
ax3 = subaxis(2, 2, 3)
ax3 = subplot(2, 2, 3)
hold on;
plot(ht_3.t, ht_3.Vph);
plot(ht_3.t, ht_3.Vpv);
@@ -115,7 +115,7 @@ xlabel('Time [s]');
ylabel('Voltage [V]');
title('CL + CU');
ax4 = subaxis(2, 2, 4)
ax4 = subplot(2, 2, 4)
hold on;
plot(ht_4.t, ht_4.Vph);
plot(ht_4.t, ht_4.Vpv);