主要内容

fit

Fit model or boundary model to new or existing data, and provide summary statistics

    Description

    [outmodel,statistics] = fit(inmodel,X,Y) This fits the model to the specified data.

    [outmodel,statistics] = fit(inmodel) refits the model if data for fit has already been supplied.

    example

    Examples

    collapse all

    Calculate fit of a model using this syntax.

    statistics = fit(knot)
    statistics =
       27.0000    7.0000    1.0000    3.0184    2.6584

    Input Arguments

    collapse all

    Model being fitted, specified as an mbcmodel.model object.

    Data being used to fit the model, specified as a matrix.

    Output Arguments

    collapse all

    Fitted model, returned as an mbcmodel.model object.

    Statistics of the fitted model, returned as a structure.

    More About

    collapse all

    Version History

    Introduced in R2007a