Main Content

matlab::engine::String

Define UTF16 string

Description

Type definition for std::basic_string<char16_t>.

Examples

This example defines a variable containing the name of a shared MATLAB® session. Pass this string to the matlab::engine::connectMATLAB function to connect to the named session.

matlab::engine::String session(u"myMatlabEngine");
std::unique_ptr<MATLABEngine> matlabPtr = connectMATLAB(session);
Introduced in R2017b