I have been using Visual Studio 2019 to simulate then I export my result to Matlab 2018a.
In order to use the tiledlayout in the recent release of MATLAB I downloaded 2019b (without uninstalling 2018a).
Now when I run my code in Visual studio it given me the following error for libmwms.dll, mlutil.dll, uiw.dll, jmi.dll
In Visual studio output I see its trying to load from 'C:\Program Files\MATLAB\R2019b\bin\win64\' instead of ''C:\Program Files\MATLAB\R2018a\bin\win64\' eventhough I didn't change VC++ Directories.
I tried changing VC++ Directories to 2019b but it didn't work. When I unistalled 2019b the code worked again.
(How can I force it to load from R2018a or alternatively make it work with R2019b)