Products & Services Solutions Academia Support User Community Company

Learn more about Model-Based Calibration   

ModifyVariable - Modify user-defined variable in data set

Syntax

D = ModifyVariable(D, Index, expr, units)

Description

This is a method of mbcmodel.data.

You call this method to modify the expression that defines existing variables.

D is a data object.

Index is the input index to indicate which of the available variables you wish to modify. Use the property UserVariables to find the index for each variable.

expr is the input string holding the expression that defines the variable, as for AddVariable.

units is an optional input string holding the units of the variable.

Examples

ModifyVariable(D, 2, 'MY_NEW_VARIABLE = TQ*AFR/2');

See Also

AddVariable, RemoveVariable, UserVariables

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS