Register COM Matlab Application TLB for certain version on when multiple versions installed
47 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (4 件)
Walter Roberson
2012 年 7 月 30 日
Start up the version of MATLAB you want, with the /register flag
5 件のコメント
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 件のコメント
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 日
In MATLAB 2020b this solution does not work. It wreturns in the command window:
Warning: Unrecognized command line option: register.
0 件のコメント
Walter Roberson
2022 年 5 月 26 日
See https://www.mathworks.com/help/matlab/matlab_external/register-matlab-as-automation-server.html for R2020a and later.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!