Eppley Growth Function
% EPPGROWMAX calculates the maximum phytoplankton growth rate at specified
% temperature(s) according to the Eppley growth curve from
% EPPLEY, R. W. 1972. Temperature and phytoplankton growth in the sea.
% Fish. Bull. 70: 1063-1085.
%
% INPUTS:
% 1) Temperature - specifies temperature(s) at which to calculate the
% maximum growth rate. Can be scalar or vector. If vector, it is
% calculated at each temperature value, or treated according to
% Method (input argument #2), if specified.
%
% 2) Method - (Default is 'each')
% Specifies how to treat temperature vector input. Currently
% there are two options: 'each' or 'mean'. If method is 'each', then
% function will calculate uMax for each element of Temperature input
% and uMax output will have number of elements equal to Temperature.
% If method is 'mean', then function will average together each
% successive pair in Temperature & calculate uMax for each averaged
% Temperature, and uMax output will have number of elements equal to
% length(Temperature-1). Method input will be ignored if Temperature
% input is scalar. Method accepts partial strings, such as 'mea',
% 'm','ea' or 'e'.
%
%
% Example:
%
% temps = 1:40;
% plot( temps, eppGrowMax(temps) );