
clear				% Clear previous definitions
figure(1)           % Assign figure number
clf                 % Clear previous figures
hold off            % Start with fresh graph

mytitle = 'Population Models'; 	% Title
xlab = '$t$ (days)'; 		        % X-label
ylab = 'Population'; 	         	% Y-label

tt = linspace(0,200,500);	% t domain of function
P1 = 64*exp(0.05*tt-0.00044*tt.^2);    % Population 1
P2 = (14-10*exp(-0.01*tt)-tt/30).^3;    % Population 1

plot(tt,P1,'b-','LineWidth',1.5);  % Plot model 1
hold on                            % Plots Multiple graphs
plot(tt,P2,'r-','LineWidth',1.5);  % Plot model 1

grid                                % Adds Gridlines
legend({'Model 1','Model 2'},2, 'FontSize',10,'FontName','Times New Roman');  % Create legend
axis([0 200 0 350]);  % Defines limits of graph

fontlabs = 'Times New Roman';   % Font type used in labels
xlabel(xlab,'FontSize',14,'FontName',fontlabs,'interpreter','latex');  
        % x-Label size and font
ylabel(ylab,'FontSize',14,'FontName',fontlabs,'interpreter','latex');  
        % y-Label size and font
title(mytitle,'FontSize',16,'FontName','Times New Roman','interpreter','latex'); 
        % Title size/font
set(gca,'FontSize',12);         % Axis tick font size

print -depsc pop2m.eps		% Create figure as EPS file
%print -djpeg pop2m.jpg		% Create figure as JPEG file

