Statistics Toolbox    
nlintool

Fits a nonlinear equation to data and displays an interactive graph

Syntax

Description

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.

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

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.

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.

You can drag the dotted white reference line and watch the predicted values update simultaneously. Alternatively, you can get a specific prediction by typing the value for x into an editable text field. Use the pop-up menu labeled Export to move specified variables to the base workspace. You can change the type of confidence bounds using the Bounds menu.

Example

See Nonlinear Regression Models.

See Also
nlinfit, rstool


  nlinfit nlparci