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

回答(4 个)

Walter Roberson
Walter Roberson 2012-7-30
Start up the version of MATLAB you want, with the /register flag
  5 个评论

请先登录,再进行评论。


hasan yousefi
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
Hakan Basargan 2020-12-17
Please note that this solution for the Windows.
  1. Run the Terminal.
  2. Go to the matlab root by using cd command (until you find matlab.exe)
  3. Then matlab.exe/register
Thats all.

请先登录,再进行评论。


nitzan lubi
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.

Walter Roberson
Walter Roberson 2022-5-26

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by