In Simulink, I know how to define a Matlab function that takes a constant or signal as input and processes it. I would like to ask if there is also a possibility to input a (constant) string to a Matlab function. I looked in the library browser and cannot find a block that can represent a string.
1 Answers
3
votes
Simulink does not support chars. Easiest work around is a constant block with the value uint8('hello world'). In your MatlabFunction Block you can convert it back to text using char(varname).