主要内容

ImportFromMBCDataStructure

Load data from MBC data structure

Description

DataObjMod = ImportFromMBCDataStructure(DataObj,mbcStruct) imports an MBC data structure to your DataObj.

Before using the method, use CreateData and BeginEdit so that you can add data to the data object.

example

Examples

collapse all

DataObjMod = ImportFromMBCDataStructure(DataObj,mbcStruct);

Input Arguments

collapse all

mbcmodel.data data object.

An MBC data structure is a structure array that contains these fields:

  • varNames — Cell array of character vectors that hold the names of the variables in the data (1xn or nx1).

  • varUnits — Cell array of character vectors that hold the units associated with the variables in varNames (1xn or nx1). If array is empty, no units are defined.

  • data — Array that holds the values of the variables (mxn).

  • comment — Optional character vector holding comment information about the data.

Output Arguments

collapse all

Modified mbcmodel.data object.

Version History

Introduced before R2006a