%Performance Testing of 300V->15V supply

%Testing was done at a constant input voltage, and a variable output
%power

close all
clear all

Vin = 300;
Pout  = [25 50 100 300:200:3100]/1000;
I_in = [.12 .26 .46 1.42 2.23 3. 3.72 4.51 5.25 6.05 6.77 7.51 8.33 9.11 9.83 10.56 11.2 11.6];

Pin = Vin*I_in/1000;

eff = 100*Pout./Pin;

figure('Position',[236         106        1266         909],'PaperPositionMode','manual','PaperOrientation','landscape','PaperType','usletter','PaperPosition',[0 0 11 8.5]);
ah1 = subplot(2,1,1)
plot(Pin,Pout);
xlabel('Power In (W)');
ylabel('Power Out (W)');
title('[Performance at ' num2str(Vin) ' V input']);
ah2 = subplot(2,1,2)
plot(Pout,eff);
xlabel('Power Out (W)');
ylabel('Eff (%)');

print('-dpdf','300Vto15VEff');
