Why can't I start MATLAB with the Excel and why does a registry configuration error occur?
3 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to link excel with Matlab. But when I try sending data to MATLAB, only the command window appear. I read online to try run the code:
!matlab /regserver
in the command window, but a registry configuration error occurs. I have MATLAB R2022b. Please advice!
I was able to link Excel and MATLAB before, so I'm not sure why this happens.
Thanks in advance.
0 件のコメント
回答 (1 件)
Shivang
2023 年 10 月 16 日
Hi Trang,
I understand you only see the Command Window while sending data to MATLAB using Spreadsheet Link.
Note that only the Command Window opens by default when Spreadsheet Link starts MATLAB in Excel. In order to start MATLAB in full desktop mode, you need to enable the "Use MATLAB desktop" option in the Spreadsheet Link Preferences. Refer to the documentation for more details: https://www.mathworks.com/help/exlink/set-spreadsheet-link-preferences.html
Since you are able to open the Command Window (which is the default behaviour), I doubt there are any issues with your MATLAB COM Server Registration. You can run
comserver('query')
to displays installation paths of the registered MATLAB COM servers, and verify that they correspond to R2022b. Refer to the documentation of the "comserver" function for further details: https://www.mathworks.com/help/matlab/ref/comserver.html
Hope this helps.
Regards,
Shivang
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Excel Integration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!