主要内容

ModifyVariable

Modify variable in data set

Description

DataObjMod = ModifyVariable(DataObj,Index,Expr,Units) modifies a variable in the data set. Variable names are case sensitive.

example

Examples

collapse all

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

Input Arguments

collapse all

mbcmodel.data data object.

Input index to indicate which of the available filters you want to modify. Use the mbcmodel.data object Filters property to find the index for each filter.

Example: 2

Data Types: int

Input character vector containing the expression. To define the expression, use logical operators or a logical function on the existing variables.

Example: 'AFR < AFR_CALC + 10'

Data Types: char

Input character vector containing the expression that defines the variable units.

Example: 'lb'

Data Types: char

Output Arguments

collapse all

Modified mbcmodel.data object.

Version History

Introduced before R2006a