Cannot start desktop MATLAB COM server when MATLAB is registered using comserver function

조회 수: 5 (최근 30일)
In MATLAB R2020a, why am I unable to start MATLAB COM server in desktop mode via actxserver or Excel Spreadsheet Link.
Running the command:
>> actxserver('matlab.desktop.application');
results in MATLAB opening in a non-desktop mode with the following warning message:
Warning: Unrecognized command line option: Desktop
In Excel, clicking the Spreadsheet Link dropdown (MATLAB icon), and launching MATLAB yields the same result.
How can I open MATLAB R2020a as a COM Server in desktop mode?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2020년 10월 14일
You are seeing this issue as a result of a bug in R2020a (updates 3 and earlier) with the "comserver" command. You can find the external bug report along which includes the workaround here:
As mentioned in the bug report, you can either upgrade to MATLAB R2020a Update 4 (or later) which has the fix for this issue, or you can try the following workaround:
In a R2020a MATLAB with admin rights: 
%clear registry entries
comserver('unregister','User','all')
comserver('unregister');
%register MATLAB
regmatlabserver
Please note that these commands require administrative permissions.
If you do not have administrative permissions, I would recommend reaching out to your IT department so that they can provide the necessary permissions, or try the other option of upgrading to MATLAB R2020a update 4 or later.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by