function y = exponential(parameter, x)
% Function implements an exponential function with two parameters
% controlling the amplitude and the time constant.

y = parameter(1) .* exp(x./parameter(2));