MATLAB: I am receiving a “Make Error” when trying to run a simple model in Simulink containing a MATLAB function block. Can anyone help please

make errormatlab function blocksimulink

I am receiving the following "Make Error" when trying to run a simple model in Simulink containing a MATLAB function block:
Making simulation target "untitled_sfun", …
'untitled_sfun.bat' is not recognized as an internal or external command, operable program or batch file.
The model is called "untitled". I know it has something to do with the MATLAB function block because the model works without it. Can anyone help please?

Best Answer

You need to install a compiler (if you have not already) and use
mex -setup
Related Question