MATLAB: Is the include file generated incorrectly if I have “_” and “-” characters in the model name in Stateflow 5.1.1 and higher (R13SP1+)

coderdashhyphenstateflowunderscore

My include file is generated incorrectly if I have "_" and "-" characters in my model name in Stateflow 5.1.1 and higher (R13SP1+).

Best Answer

There is a bug in Stateflow 5.1.1 and higher (R13SP1+) that causes the include file to be generated incorrectly if the model name contains "_" or "-" characters. This occurs because Stateflow treats "-" characters as separators.
To work around this issue, remove all "_" and "-" characters from the model name.