y = expon(p, x, [y]) : Exponential decay iFunc/expon Exponential decay fitting function p(2)=Tau is the exponential decay parameter, in inverse 'x' units. y=p(3)+p(1)*exp(-x/p(2)); expon(decay) creates a model with specified decay constant expon([ parameters ]) creates a model with specified model parameters input: p: Exponential decay model parameters (double) p = [ Amplitude Tau BackGround ] or 'guess' x: axis (double) y: when values are given and p='guess', a guess of the parameters is performed (double) output: y: model value ex: y=expon([1 0 1], -0:10); or plot(expon) Version: Nov. 27, 2018 See also iData, iFunc/fits, iFunc/plot, twoexp, sinedamp (c) E.Farhi, ILL. License: EUPL.