Simulink Fcn blocks give syntax errors if you name variables in them that are not variables that exist in the workspace.
I suspect that either m or I or both are not currently defined.
You might tend to think that Fcn blocks would wait until execution time to look for variables existing, but if I recall correctly, they parse the string at block initialization time
Best Answer