% To load into Matlab:  just type the name of this file, without the .m
% extension.

clf;

tmin= 0;
tmax= 30;
Pmin= 0;
Pmax= 8000;
nstep = 512;

%% ----------------------------------------------------------------
t=[ tmin:(tmax-tmin)/nstep:tmax];
P = 1000*2.^(0.1*t);
plot(t,P);
hold on;

%% ----------------------------------------------------------------
axis([tmin tmax Pmin Pmax]);
h1=line([tmin tmax], [0 0]);
set(h1, 'LineStyle', '--');
h2=line([0 0], [Pmin Pmax]);
set(h2, 'LineStyle', '--');

set(gca, 'XTick', [tmin:10:tmax])
set(gca, 'YTick', [Pmin:2000:Pmax])

set(gcf, 'PaperPositionMode', 'Manual');
set(gcf, 'PaperPosition', [0 0 4.0 1.0])
print -depsc model2

