function x = exp2func(t, p) % return the exponential function x = c*e^{-t/tau} x = p(1)*exp(-t./p(2)); end