MATLAB: Simulink Modell terminates with ” Reference to non-existent field ‘accessInfoMap’ “, when a MATLAB Function block is involved

'accessinfomap'matlab functionsimulink

Hello,
my model consists of a constant, a MATLAB function and a terminator. The MATLAB Function Code is default. When the MATLAB Function is active, the model Terminates with:
"Reference to non-existent field 'accessInfoMap'. Component: Simulink | Category: Model error"
When I comment the function out, the model is solved without problems. Where can I look for a solution?
Thank you very much.

Best Answer

Found the solution. Deleting the slprj folder worked fine for me.