How can I call MATLAB as an ActiveX automation server from C#?
2 ビュー (過去 30 日間)
古いコメントを表示
I want to call MATLAB as an ActiveX automation server from my C# application. Is this possible? If so, how can I do it?
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
This change has been incorporated into the documentation in Release 2009a (R2009a). For previous releases, read below for any additional information:
It is possible to call MATLAB as an ActiveX server from C#. The required steps are:
1. Create your project in Microsoft Visual Studio .Net.
2. Add a reference to your project to the MATLAB COM object. This should be under Project->Add Reference... After you go there a dialog will popup. Choose the COM tab and find the MATLAB Application and add a reference to it.
3. You can then call MATLAB as shown in the files attached at the bottom of this solution. In the Form1.cs file, look for all references to the class instance "ml".
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で ActiveX についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!