MATLAB Answers

Call matlab 2019b from visual studio

8 views (last 30 days)
Omar Hadri
Omar Hadri on 5 Nov 2019
Edited: Omar Hadri on 5 Nov 2019
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)

Answers (1)

Omar Hadri
Omar Hadri on 5 Nov 2019
Edited: Omar Hadri on 5 Nov 2019
from command prompt I tried
Then when testing matlabroot it was giving me 'C:\Program Files\MATLAB\R2019b'
So I used
cd C:\Program Files\MATLAB\R2018a\bin
matlab /regserver
Now when testing matlabroot it direct to 'C:\Program Files\MATLAB\R2018a'
But I am still interested in a solution to make it work with R2019b




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!