Determine if MATLAB Command Window is open in C# late binding

2 ビュー (過去 30 日間)
Nolin Borrero Jr
Nolin Borrero Jr 2020 年 8 月 10 日
I am using late binding in C# to work with the MATLAB COM Automation Server. I am using this code to create the instance:
Type matlab = Type.GetTypeFromProgID("Matlab.Autoserver");
object instance = Activator.CreateInstance(matlab);
After creating the instance, a MATLAB Command Window opens up. Since it is possible for users to manually close that window before the code calls Quit, I am trying to find a way to check whether or not the command window is still open. Is there a way to do this other than just looking for errors?

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler SDK についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by