https://se.mathworks.com/help/matlab/apiref/matlab.data.chararrayext.html
matlab::data::ReferenceCharArray - C++ class to get reference to CharArray - MATLAB
The CharArrayExt class extends the APIs available to a reference to a CharArray.
c classto getmatlabdatareference