主要内容

Fit

R2026b

Fit existing boundary model to data

    Description

    B = Fit(B,data) fits the boundary model B to the data in data.

    example

    Examples

    collapse all

    Create a boundary model and fit the model to new data.

    B = fitmbcboundary(randn(100,2));
    newData = randn(200,2);
    B = Fit(B,newData)

    Input Arguments

    collapse all

    Boundary model to fit, specified as an mbcboundary.Model object.

    Input data for fitting the boundary model, specified as a double matrix with one column for each input to the boundary model. The number of columns must match the value of the NumInputs property of B.

    Output Arguments

    collapse all

    Fitted boundary model, returned as an mbcboundary.Model object. After fitting, the Fitted property is set to true.

    More About

    collapse all

    Version History

    Introduced in R2009a