|
|
|
@@ -18,30 +18,30 @@ mA=ceil(maxamp); |
|
|
|
figure(1); |
|
|
|
set(clf,'PaperType','A4'); |
|
|
|
set(clf,'Color',[1,1,1]); |
|
|
|
subplot(221); |
|
|
|
ax(1) = subplot(221); |
|
|
|
plot(tv, blv, tv, ehv, tv, dhv, tv, vhv); |
|
|
|
xlabel('time [ms]','Fontsize',8); |
|
|
|
title('first three harmonics','Fontsize',8); |
|
|
|
set(gca,'Fontsize',8); |
|
|
|
|
|
|
|
subplot(222); |
|
|
|
ax(end+1) = subplot(222); |
|
|
|
plot(tv, blv, tv, ehv); |
|
|
|
xlabel('time [ms]','Fontsize',8); |
|
|
|
title('first harmonic','Fontsize',8); |
|
|
|
set(gca,'Fontsize',8); |
|
|
|
|
|
|
|
subplot(223); |
|
|
|
ax(end+1) = subplot(223); |
|
|
|
plot(tv, blv, tv, epdhv); |
|
|
|
xlabel('time [ms]','Fontsize',8); |
|
|
|
title('sum first and third harmonic','Fontsize',8); |
|
|
|
set(gca,'Fontsize',8); |
|
|
|
|
|
|
|
subplot(224); |
|
|
|
ax(end+1) = subplot(224); |
|
|
|
plot(tv, blv, tv, epdpvhv); |
|
|
|
xlabel('time [ms]','Fontsize',8); |
|
|
|
title('sum of all harmonics','Fontsize',8); |
|
|
|
set(gca,'Fontsize',8); |
|
|
|
|
|
|
|
linkaxes(ax) |
|
|
|
|
|
|
|
%% Triangular Wave |
|
|
|
amp = -(8*B)/(pi^2); |
|
|
|
@@ -70,26 +70,29 @@ epdpvhv = epdhv + vhv; |
|
|
|
figure(2); |
|
|
|
set(clf,'PaperType','A4'); |
|
|
|
set(clf,'Color',[1,1,1]); |
|
|
|
subplot(221); |
|
|
|
ax(end+1) = subplot(221); |
|
|
|
plot(tv, drv, tv, ehv, tv, dhv, tv, vhv); |
|
|
|
xlabel('time [ms]','Fontsize',8); |
|
|
|
title('first three harmonics','Fontsize',8); |
|
|
|
set(gca,'Fontsize',8); |
|
|
|
|
|
|
|
subplot(222); |
|
|
|
ax(end+1) = subplot(222); |
|
|
|
plot(tv, drv, tv, ehv); |
|
|
|
xlabel('time [ms]','Fontsize',8); |
|
|
|
title('first harmonic','Fontsize',8); |
|
|
|
set(gca,'Fontsize',8); |
|
|
|
|
|
|
|
subplot(223); |
|
|
|
ax(end+1) = subplot(223); |
|
|
|
plot(tv, drv, tv, epdhv); |
|
|
|
xlabel('time [ms]','Fontsize',8); |
|
|
|
title('sum first and third harmonic','Fontsize',8); |
|
|
|
set(gca,'Fontsize',8); |
|
|
|
|
|
|
|
subplot(224); |
|
|
|
ax(end+1) = subplot(224); |
|
|
|
plot(tv, drv, tv, epdpvhv); |
|
|
|
xlabel('time [ms]','Fontsize',8); |
|
|
|
title('sum of all harmonics','Fontsize',8); |
|
|
|
set(gca,'Fontsize',8); |
|
|
|
set(gca,'Fontsize',8); |
|
|
|
|
|
|
|
linkaxes(ax(5:8)) |
|
|
|
arrayfun(@(x) set(x,{'XGrid','YGrid'},{'on','on'}),ax) |