Home > Scripts > Models > quadline.m

iFit/quadline

PURPOSE ^

y = quadline(p, x, [y]) : Quadratic line

SYNOPSIS ^

function y=quadline(varargin)

DESCRIPTION ^

 y = quadline(p, x, [y]) : Quadratic line

   iFunc/quadline Quadratic fitting function
     y=p(3)+p(2)*x+p(1)*x.*x;

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

 input:  p: Quadratic line model parameters (double)
            p = [ Quadratic Linear Constant ]
          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=quadline([1 0 1], -10:10); or y=quadline('identify') or p=quadline('guess',x,y);

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 22-Aug-2017 11:03:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1