Why am I unable to start my MATLAB Engine application when I have two versions of MATLAB installed?
조회 수: 5 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2012년 1월 17일
편집: MathWorks Support Team
2017년 1월 27일
I have two versions of MATLAB installed and have linked my Engine application against one of them. However, when I try to start it, it fails.
채택된 답변
MathWorks Support Team
2017년 1월 27일
This enhancement has been incorporated in Release 2008a (R2008a). For previous product releases, read below for any possible workarounds:
If your application fails when using MATLAB Engine, there are two things that you should check:
1. Be sure that the MATLAB version you linked against is first in your system PATH environment variable.
2. Open a DOS command prompt and then change your working directory to MATLABROOT/bin/win32 using the CD command, where MATLABROOT represents the directory in which MATLAB is installed on your system. After that, issue the command ".\matlab /regserver" and then close the MATLAB window that appears. This registers that version of MATLAB as a COM automation server. This is required for proper Engine startup.
Alternatively (for #2), run the following command from MATLAB and then close both MATLAB's:
eval(['!', '"', fullfile(matlabroot,'bin','win32','matlab.exe'), '"',' /regserver &'])
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Manage Products에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!