Contenuto principale

CreateModel

Create new model

    Description

    ModelObj = mbcmodel.CreateModel(Type,Inputs) creates an ModelObj object of the specified Type.

    example

    ModelObj = CreateModel(Model,Type) creates a new model (of the specified Type) with the same inputs as an existing Model, where Model is a ModelObj object.

    example

    Examples

    collapse all

    Create a hybrid spline with four input factors.

    M = mbcmodel.CreateModel('Hybrid Spline', 4)

    Create an RBF with four input factors.

    Inputs = mbcmodel.modelinput('Symbol',{'N','L','EXH','INT'}',...
       'Name',{'ENGSPEED','LOAD','EXHCAM','INTCAM'}',...
       'Range',{[800 5000],[0.1 1],[-5 50],[-5 50]}');
    
    RBFModel = mbcmodel.CreateModel( 'RBF', Inputs);
    

    Create a polynomial with the same input factors as the previously created RBF.

    PolyModel = CreateModel(RBFModel,'Polynomial')

    Input Arguments

    collapse all

    Type of model objects.

    Note

    Spaces and case in model Type are ignored.

    The model type must be one in this table.

    TypeModel Object
    Polynomialmbcmodel.linearmodel
    Hybrid Splinembcmodel.linearmodel
    RBFmbcmodel.linearmodel
    Hybrid RBFmbcmodel.linearmodel
    Polynomial-RBFmbcmodel.linearmodel
    Hybrid Spline-RBFmbcmodel.linearmodel
    Gaussian Processmbcmodel.model
    Free Knot Splinembcmodel.model
    Transientmbcmodel.model
    User-Definedmbcmodel.model
    Neural Networkmbcmodel.model
    Interpolating RBFmbcmodel.model
    Local Polynomial Splinembcmodel.localmodel
    Local Polynomial with Datummbcmodel.localmodel
    Local Polynomialmbcmodel.localmodel
    Local Hybrid Splinembcmodel.localmodel
    Local Truncated Power Seriesmbcmodel.localmodel
    Local Free Knot Splinembcmodel.localmodel
    Local Multiple Modelsmbcmodel.localmodel
    Local Growth mbcmodel.localmodel
    Local User-Definedmbcmodel.localmodel
    Local Transientmbcmodel.localmodel
    Local Average Fitmbcmodel.localmodel

    Data Types: char | string

    Model input, specified as an mbcmodel.modelinput object.

    Model object.

    An existing ModelObj object.

    Output Arguments

    collapse all

    Model created by CreateModel, returned as a model object.

    Version History

    Introduced in R2007a