What are ways to generate .NET code from Matlab/Simulink?

I need to share my Matlab codes and algorithms to use for a .NET application. What are the different ways to get this done. I know that with the use of Matlab Compiler SDK we can build .NET apps. Any other way to do so without having Matlab Compiler SDK. I have licenses for Matlab and simulink Coder. It would be great if we can discuss limitations of the workarounds.

3 件のコメント

Denis Gurchenkov
Denis Gurchenkov 2018 年 7 月 31 日
If you have MATLAB Coder license, you can try converting your MATLAB to C or C++, and then compile that generated C code inside your .NET project (or create a shared library and call it from .net).
Shubham Patel
Shubham Patel 2018 年 8 月 1 日
Do we have any demo about how to do this? I am not much familiar with .NET or JAVA and this concept is quite new for me.
Nathan S
Nathan S 2018 年 8 月 1 日
You might find this page useful:
https://www.mathworks.com/company/newsletters/articles/generating-c-code-from-matlab-for-use-with-java-and-net-applications.html

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

回答 (1 件)

aditi bagora
aditi bagora 2025 年 1 月 7 日

0 投票

As @Nathan S recommended, one option is to convert your MATLAB code into C. However, there are several other methods to integrate MATLAB code and algorithms into a .NET application:
  • MATLAB Compiler: This tool allows you to share your MATLAB programs as standalone executables (.exe).
  • MATLAB Compiler SDK: Building on MATLAB Compiler, this SDK enables you to create shared libraries (.dll, .so) for more versatile application integration.
  • MATLAB Coder: This tool generates readable and portable C source code from your MATLAB code, facilitating integration into various environments.
For more detailed guidance on which tool to use, please refer to the following MATLAB Answer:
Hope this helps!

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler SDK についてさらに検索

製品

質問済み:

2018 年 7 月 31 日

回答済み:

2025 年 1 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by