function tau = data_neely1988(F,L,varargin)
%DATA_NEELY1988 ABR wave V data as functon of level and sweeping rate
% Usage: tau = data_neely1988(flag)
%
% Input parameters:
% F : Centre frequencies of stimulus
% L : Levels at centre frequencies
%
% Output parameters:
% tau : Wave V latency
%
% `data_neely1988(F,L)` returns data points based on equation 1 from
% Neely et al. (1988) where *F* is the centre frequencies and *L* are
% the associated levels.
%
% The flag may be one of:
%
% 'noplot' Don't plot, only return data. This is the default.
%
% 'plot' Plot the data.
%
% Examples:
% ---------
%
% Figure 2 in Neely et al. (1988) can be reproduced using:::
%
% F=[250 500 1000 2000 5000 8000];
% tau=data_neely1988(F,[40 60 80 100]);
% loglog(F,tau','k-');
% xlabel('CF');
% ylabel('Latency [ms]')
%
% References: neely1988latency
L = L/100; % Stimulus level, dB SPL
for ii = 1:length(L)
tau(ii,:) = 5 + 12.9 * 5.^(-L(ii)) * (F/1000).^(-.413);
end