Register COM Matlab Application TLB for certain version on when multiple versions installed
이전 댓글 표시
Hi,
I have multiple versions of Matlab installed, essentially all from 2009b up until present version (because I'm developing a plugin for simulink).
Only one of my Matlab versions is registered among the COM apis I can find for instance in Visual Studio "Add reference" dialog.
How do I register the COM API for a different version? I've tried using regsvr32 on mlapp.tlb but this is not the way to go about this as I understand it?
Best regards
답변 (4개)
Walter Roberson
2012년 7월 30일
1 개 추천
Start up the version of MATLAB you want, with the /register flag
댓글 수: 5
Arvind Pandey
2013년 1월 1일
I m sorry but I didn't get that. Can you please suggest the steps to follow for that. Thanks for the suggestion
Walter Roberson
2013년 1월 1일
Start up a Windows command window. "cd" until you find matlab.exe (or whatever its exact name is.) Then at the Windows command line,
matlab.exe /register
Arvind Pandey
2013년 1월 2일
Thanks for the steps.
Christian Schlegel
2020년 11월 20일
In Windows10, only <matlab.exe -regserver>, not <matlab.exe -register>, worked for me.
Walter Roberson
2020년 11월 20일
The command changed in time, but unfortunately I am not sure I can track it down in the documentation.
hasan yousefi
2020년 7월 26일
Hi, why not working command order in matlab 2018a:
matlab.exe /register
error is:
Undefined variable "matlab" or class "matlab.exe".
Current folder is: K:\Program Files\MATLAB\R2018a\bin
댓글 수: 4
Maria Avitha Francis
2020년 10월 28일
What is the name of your .exe file ?
Walter Roberson
2020년 10월 28일
That command should be executed at a Windows command prompt.
Note: as of R2020b, you can use the MATLAB command
comserver('register')
Hakan Basargan
2020년 12월 17일
Please note that this solution for the Windows.
- Run the Terminal.
- Go to the matlab root by using cd command (until you find matlab.exe)
- Then matlab.exe/register
Thats all.
nitzan lubi
2022년 5월 25일
Please see below, this solution does not work r change the default Matlab version...
nitzan lubi
2022년 5월 25일
0 개 추천
In MATLAB 2020b this solution does not work. It wreturns in the command window:
Warning: Unrecognized command line option: register.
Walter Roberson
2022년 5월 26일
0 개 추천
See https://www.mathworks.com/help/matlab/matlab_external/register-matlab-as-automation-server.html for R2020a and later.
카테고리
도움말 센터 및 File Exchange에서 Write COM Applications to Work with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!