Strings are pieces of textual data. Use strings in Stateflow® charts that use C as the action language to control chart behavior or create natural language output. Incorporate string data in your logging, messages, and custom code workflows.
Manage Textual Information by Using Strings
Use text strings in C action language charts.
Log String Data to the Simulation Data Inspector
View text strings in the Simulation Data Inspector and in the MATLAB® workspace.
Send Messages with String Data
Communicate between charts by using messages with string payloads.
Share String Data with Custom C Code
Pass string data between Stateflow charts and custom C code.
Simulate a Media Player by Using Strings
Define the behavior of a chart that models a media player by using string data.