Home > Scripts > Models > expon.m

iFit/expon

PURPOSE ^

y = expon(p, x, [y]) : Exponential decay

SYNOPSIS ^

function y=expon(varargin)

DESCRIPTION ^

 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. 26, 2018
 See also iData, iFunc/fits, iFunc/plot, twoexp, sinedamp
 (c) E.Farhi, ILL. License: EUPL.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1