How can I run C# code in MATLAB?

47 ビュー (過去 30 日間)
Gauri Gupta
Gauri Gupta 2018 年 8 月 8 日
コメント済み: Shahidul Asif 2021 年 3 月 8 日
I have a simple C# programme written in Visual Studios and I would like to call it and run it from MATLAB.

回答 (1 件)

Lipi Vora
Lipi Vora 2018 年 8 月 10 日
編集済み: Lipi Vora 2018 年 8 月 10 日
I understand that you would like to call your C# program from MATLAB.
To do so, you will have to first expose your C# code as a .NET library. Once this is done, you can call the .NET libraries from MATLAB using NET.addAssembly.
Here is the link to further documentation for using .NET libraries in MATLAB.
Hope this helps!
  1 件のコメント
Shahidul Asif
Shahidul Asif 2021 年 3 月 8 日
How do I expose the codes as you mentioned?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGetting Started with Microsoft .NET についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by