主要内容

mbcmodel.modelinput

Properties and methods for modelinput objects

    Description

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

    Creation

    Description

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

    example

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

    ModelInpObj = mbcmodel.modelinput(CellArray) creates an mbcmodel.modelinput 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.

    mbcmodel.modelinput model object range, specified as a vector.

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

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

    Nonlinear mbcmodel.modelinput 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 = mbcmodel.modelinput(2);

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

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

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

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

    Version History

    Introduced in R2006a