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

mytitle = 'Length of Lake Trout'; 	% Title
xlab = 'Age (Years)'; 		        % X-label
ylab = 'Length (cm)'; 	         	% Y-label

load('fishdat');         % Provide vectors of Lake Trout data

tt = linspace(0,20,500);	% t domain of function
Lt = 92.404*(1-exp(-0.14553*tt));    % Function for von Bertalanffy

plot(tt,Lt,'b-','LineWidth',1.5);  % Plot model
hold on                            % Plots Multiple graphs
plot(tdfish,ldfish,'bo','LineWidth',1.5);  % Plot data with circles

grid                                % Adds Gridlines

xlim([0 20]);  % Defines limits of graph
ylim([0 100]);

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 vonBert.eps		% Create figure as EPS file
%print -djpeg vonBert.jpg		% Create figure as JPEG file

