Call matlab 2019b from visual studio

조회 수: 2 (최근 30일)
Omar Hadri
Omar Hadri 2019년 11월 5일
편집: Omar Hadri 2019년 11월 5일
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)

답변 (1개)

Omar Hadri
Omar Hadri 2019년 11월 5일
편집: Omar Hadri 2019년 11월 5일
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

카테고리

Help CenterFile Exchange에서 Install Products에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by