y = dirac(p, x, [y]) : Dirac iFunc/dirac Dirac fitting function y(x==p(2)) = p(1) dirac(centre) creates a model with a line at centre dirac([ parameters ]) creates a model with specified model parameters input: p: Dirac model parameters (double) p = [ Amplitude Centre ] 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=dirac([1 0], -10:10); or plot(dirac) Version: Nov. 27, 2018 See also iData, iFunc/fits, iFunc/plot (c) E.Farhi, ILL. License: EUPL.