matlab::data::ObjectArray - C++ class to access MATLAB object arrays - MATLAB (original) (raw)

Main Content

C++ class to access MATLAB object arrays

Description

Use ObjectArray objects to access MATLABĀ® object arrays. To create an ObjectArray, call createArray in theArrayFactory class using this syntax:

template <typename ItType, typename T> TypedArray createArray(ArrayDimensions dims, ItType begin, ItType end)

To create a scalar object, call createScalar using this syntax:

ObjectArray createScalar(const Object& val);

ObjectArray is defined as:

using ObjectArray = TypedArray;

Class Details

Namespace: matlab::data
Include: ObjectArray.hpp

You cannot combine elements of an ObjectArray into a heterogeneous array.

If the class defining the Object overridessubsref or subsasgn, then you cannot access the elements of the ObjectArray.

Version History

Introduced in R2017b