MATLAB: Matlab Compiler 7.1

MATLAB Compiler

I recently updated my Matlab and Matlab Compiler to 2019b. I compiled a script with the compiler using the new versions and when I run the executable, I get an error that the application "Could not find version 9.7 of the Matlab runtime, attempting to load mclmcrrt9_7.dll. Please install the correct version of the Matlab runtime." My question is why do I need the runtime if I have matlab installed on my computer. What am I missing in my new setup?

Best Answer

If you have installed MATLAB and want to run applications compiled by MATLAB Compiler, make sure that MATLABROOT\runtime\win64 (as of Windows) is added in your environment PATH.
Where MATLABROOT is MATLAB's installation path. (for example, C:\Program Files\MATLAB\R2019b)
Related document: