June 16, 2019 at 1:25 pm #1842
It might be that it is trying to use a different runtime version when called from matlab.
Note that the environment variables and the path is different in dos and in matlab.
check environment variables in matlab by typing env. Make sure that the correct MCR is first on the path.