Home > Scripts > Models > voigt.m



y = voigt(p, x, [y]) : Voigt function


function y=voigt(varargin)


 y = voigt(p, x, [y]) : Voigt function

   iFunc/voigt Voigt fitting function, including Bose factor.
     The Width parameters of the Gaussian and Lorentzian are the Half Widths.

 voigt(width)          creates a model with a specified width
 voigt([ parameters ]) creates a model with specified model parameters

 Reference: http://en.wikipedia.org/wiki/Voigt_profile

 input:  p: Voigt model parameters (double)
            p = [ Amplitude Centre Width_Gauss Width_Lorz 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=voigt([1 0 1 1], -10:10); or plot(voigt);

 Version: Nov. 26, 2018
 See also iFunc, iFunc/fits, iFunc/plot
 (c) E.Farhi, ILL. License: EUPL.


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