Home > Scripts > Models > expstretched.m

iFit/expstretched

PURPOSE ^

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

SYNOPSIS ^

function y=expstretched(varargin)

DESCRIPTION ^

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

   iFunc/expstretched Stretched exponential decay fitting function
     Tau is the expeonential decay parameter, in inverse 'x' units.
     y=p(4)+p(1)*exp(-(x/p(2)).^p(3));

 expstretched(decay)          creates a model with specified decay constant
 expstretched([ parameters ]) creates a model with specified model parameters

 input:  p: Stretched exponential decay model parameters (double)
            p = [ Amplitude Tau Exponent 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=expstretched([1 0 1 1], -10:10); or plot(expstretched)

         I will not buy this exponential; it is stretched.
         <http://en.wikipedia.org/wiki/Dirty_Hungarian_Phrasebook>

 Version: Mar. 22, 2017
 See also iData, iFunc/fits, iFunc/plot
 (c) E.Farhi, ILL. License: EUPL.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 22-Mar-2017 09:13:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1