How to run the MATLAB Compiler from inside a C# windows application

3 ビュー (過去 30 日間)
Pezh
Pezh 2013 年 3 月 28 日
Hi, I'm developing some C# windows application and I need to receive some .m Matlab files and compile them Matlab compiler in order to generate some .Net assemblies. I know that it can be done from Matlab environment itself but I need to call that Matlab Compiler from my application and pass the .m files to that. Is there any Dll or COM available? I have Matlab R2012b installed.

採用された回答

Kaustubha Govind
Kaustubha Govind 2013 年 3 月 28 日
You should first write a MATLAB function using the MATLAB Compiler command-line API (look for mcc in the documentation to get started) that accepts the .m file-names as input arguments and invokes MATLAB Compiler to generate .NET assemblies from those files. Once you have that, you can use the MATLAB COM Interface to invoke that function using Feval.

その他の回答 (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