Statistics Toolbox Previous page   Next Page
nlintool

Fits a nonlinear equation to data and displays an interactive graph

Syntax

Description

nlintool displays a "vector" of plots, one for each column of the matrix of inputs, x. The response variable, y, is a column vector that matches the number of rows in x.

nlintool(x,y,FUN,beta0) is a prediction plot that provides a nonlinear curve fit to (x,y) data. It plots a 95% global confidence interval for predictions as two red curves. beta0 is a vector containing initial guesses for the parameters.

FUN is a MATLAB function that returns a vector of fitted y values. It is of the form

nlintool(x,y,FUN,beta0,alpha) plots a 100(1 - alpha)% confidence interval for predictions.

The default value for alpha is 0.05, which produces 95% confidence intervals.

nlintool(x,y,FUN,beta0,alpha,'xname','yname') labels the plot using the string matrix, 'xname' for the x variables and the string 'yname' for the y variable.

Example

See An Interactive GUI for Nonlinear Fitting and Prediction for an example and for details about using the graphical interface.

See Also
nlinfit, rstool


Previous page  nlinfit nlparci Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS