主要内容

mbcinputs

R2026b

Properties and methods for modelinput objects

Renamed from mbcmodel.modelinput in R2026b

    Description

    Use these properties and methods to create and examine modelinput objects.

    Creation

    Description

    ModelInpObj = mbcinputs('Name1','Value1',…) creates a model input object specified by name-value arguments provided by the mbcinputs properties.

    example

    ModelInpObj = mbcinputs(NumInputs) creates an mbcinputs object with the number of inputs NumInputs.

    ModelInpObj = mbcinputs(CellArray) creates an mbcinputs object with options specified in the cell array CellArray.

    Properties

    expand all

    Dataset object signal name, specified as a character vector.

    Symbol name, specified as a character vector.

    Example: 'Symbol',{'A','B'}

    Model input units name, specified as a character vector.

    This property is set to the data signal units when the response is created or if a model is assigned to a response. This property cannot be set when a response is attached to the model.

    mbcinputs model object range, specified as a vector.

    Example: 'Range','[0 100]'

    Example: 'Range',{[0 100],[-20 20]}

    Nonlinear mbcinputs object transformation.

    Example: 'NonlinearTransform','x.^2'

    Object Functions

    CreateDesignCreate design object for test plan or model

    Examples

    collapse all

    1. Create a modelinput object with two inputs.

      Inputs = mbcinputs(2);

    2. Create a modelinput object and define symbols and ranges.

      Inputs = mbcinputs('Symbol',{'A','B'},'Range',{[0 100],[-20 20]});

      Inputs = mbcinputs('Symbol',{'A','B'},'Range',[0 100]);
    3. Create a modelinput object and define inputs with a cell array.

      Inputs = mbcinputs( {...
       'N',   800, 5000, '', 'ENGSPEED'
       'L',   0.1,    1, '', 'LOAD'
      'EXH',  -5,   50, '', 'EXHCAM'
      'INT',  -5,   50, '', 'INTCAM'} );

    Version History

    Introduced in R2006a

    expand all