Main Content

matlab::engine::String

Define UTF-16 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);

Version History

Introduced in R2017b