Replace subaxis with subplot

This commit is contained in:
Thomas Dehaeze 2019-07-05 11:41:22 +02:00
parent b29287e10b
commit 04fa167f3d
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -133,13 +133,13 @@ We define the parameters of the geophone and we plot its bode plot (figure [[fig
freqs = logspace(-1, 2, 1000); freqs = logspace(-1, 2, 1000);
figure; figure;
ax1 = subaxis(2,1,1); ax1 = subplot(2,1,1);
plot(freqs, abs(squeeze(freqresp(G, freqs, 'Hz')))); plot(freqs, abs(squeeze(freqresp(G, freqs, 'Hz'))));
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log'); set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
set(gca, 'XTickLabel',[]); set(gca, 'XTickLabel',[]);
ylabel('Magnitude [V/(m/s)]'); ylabel('Magnitude [V/(m/s)]');
ax2 = subaxis(2,1,2); ax2 = subplot(2,1,2);
plot(freqs, 180/pi*angle(squeeze(freqresp(G, freqs, 'Hz')))); plot(freqs, 180/pi*angle(squeeze(freqresp(G, freqs, 'Hz'))));
set(gca,'xscale','log'); set(gca,'xscale','log');
yticks(-180:90:180); yticks(-180:90:180);
@ -197,13 +197,13 @@ Its bode plot is shown on figure [[fig:L4C_bode_plot]].
freqs = logspace(-2, 2, 1000); freqs = logspace(-2, 2, 1000);
figure; figure;
ax1 = subaxis(2,1,1); ax1 = subplot(2,1,1);
plot(freqs, abs(squeeze(freqresp(G, freqs, 'Hz')))); plot(freqs, abs(squeeze(freqresp(G, freqs, 'Hz'))));
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log'); set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
set(gca, 'XTickLabel',[]); set(gca, 'XTickLabel',[]);
ylabel('Magnitude [V/(m/s)]'); ylabel('Magnitude [V/(m/s)]');
ax2 = subaxis(2,1,2); ax2 = subplot(2,1,2);
plot(freqs, 180/pi*angle(squeeze(freqresp(G, freqs, 'Hz')))); plot(freqs, 180/pi*angle(squeeze(freqresp(G, freqs, 'Hz'))));
set(gca,'xscale','log'); set(gca,'xscale','log');
yticks(-180:90:180); yticks(-180:90:180);