MATLAB: How to use the Character or String data type in a Simulink S-Function

simulink

How do I use the character or string data type in a Simulink S-Function?

Best Answer

The char and std::string data types are not supported by Simulink:
However, "character arrays" can be emulated by using the int8 data type in Simulink and data type casts within the S-Function.