主要内容

BeginEdit

Begin editing a data object

Description

DataObjMod = BeginEdit(DataObj) allows you to edit a data object. You must call BeginEdit before to modifying a data object. BeginEdit throws an error if you cannot edit the data.

You can use BeginEdit if the DataObj property Editable is true. Otherwise, BeginEdit throws an error.

example

Examples

collapse all

This example shows you how to use BeginEdit. Use CommitEdit to commit edited data to data object, DataObj, in a project object, ProjObj.

DataObj = ProjObj.Data;
BeginEdit(DataObj);
AddVariable(DataObj, 'TQ = tq', 'lbft');
AddFilter(DataObj, 'TQ < 200');
DefineTestGroups(DataObj, {'RPM' 'AFR'}, [50 10], 'MyLogNo');
CommitEdit(DataObj);

Input Arguments

collapse all

mbcmodel.data data object.

Output Arguments

collapse all

Modified mbcmodel.data object.

Version History

Introduced before R2006a