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.