Call matlab 2019b from visual studio

1 visualización (últimos 30 días)
Omar Hadri
Omar Hadri el 5 de Nov. de 2019
Editada: Omar Hadri el 5 de Nov. de 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)

Respuestas (1)

Omar Hadri
Omar Hadri el 5 de Nov. de 2019
Editada: Omar Hadri el 5 de Nov. de 2019
Fixed:
from command prompt I tried
matlab/regserver
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

Categorías

Más información sobre Install Products en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by