Is it possible to convert MATLAB source code to C#?

7 ビュー (過去 30 日間)
keisuke maesako
keisuke maesako 2021 年 10 月 12 日
回答済み: Rahul 2024 年 10 月 16 日
Is it possible to convert MATLAB source code to C#?
If possible, can I use MATLAB's Optimization Toolbox etc. as it is?
Please tell me how to use it.
thanks in advance.

回答 (1 件)

Rahul
Rahul 2024 年 10 月 16 日
I understand that you require to convert your MATLAB source code to C# code. Unfortunately, MATLAB does not currently have the capability to directly generate C# code unlike C or C++. Hence to use MATLAB code as in C# you can consider the following options:
1) You can Build a .NET assembly using MATLAB Compiler SDK. The compiled applications use the MATLAB Runtime, a set of shared libraries that enables the execution of compiled MATLAB applications or components. More information on this can be found here: https://www.mathworks.com/help/releases/R2021b/compiler_sdk/dotnet_assemblies.html
2) Call a MATLAB function from a C# application, which acts as a client. More information on this workflow can be found here: https://www.mathworks.com/help/releases/R2021b/matlab/matlab_external/call-matlab-function-from-c-client.html
Hope this helps! Thanks.

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by