主要内容

Append

Append data to data set

Description

DataObjMod = Append(DataObj,otherData) adds new data to an existing data set.

example

Examples

collapse all

DataObjMod = Append(DataObj,mbcmodel.CreateData('holliday.xlsx'));
DataObjMod = Append(DataObj,rand(10,100));

Input Arguments

collapse all

mbcmodel.data data object.

If otherData is an mbcmodel.data object, then Append looks for common SignalNames between the two sets of data. If the method does not find common SignalNames, the method throws an error. The method appends any common signals to the existing data and fills other signals with NAN.

If otherData is an array, then it must have exactly the same number of columns as there are SignalNames in the data. The method applies vertcat (vertical concatenation) between the existing data and otherData.

Example: rand(10,100)

Data Types: function_handle | double

Output Arguments

collapse all

Modified mbcmodel.data object.

Version History

Introduced before R2006a