Main Content
clibConvertArray
Convert MATLAB fundamental or struct array to MATLAB array of C++ objects
Since R2020a
Description
cArray = clibConvertArray(
converts MATLAB® array elementTypeName
,A
)A
to a clib array, a MATLAB object representing a C++ object of type elementTypeName
.
The dimensions of cArray
are the same as A
. Each
element of cArray
is initialized by the corresponding element of
A
.
Like clibArray
, you
can only construct an array if the library requires that type.
The memory of cArray
is owned by MATLAB. To release the memory, call clibRelease
.