DLL files for c# limitation

4 ビュー (過去 30 日間)
Dharmesh Joshi
Dharmesh Joshi 2023 年 2 月 1 日
回答済み: Matthew DiBello 2023 年 2 月 3 日
Hi
I am very new to MATLAB. I see that you can create DLL files to import into a C# project.
What athe limiations in using this option?
Is there examples when Matlab would not be able to port the code to a DLL?

回答 (1 件)

Matthew DiBello
Matthew DiBello 2023 年 2 月 3 日
Hi Dharmesh,
MathWorks offers two different products which may accomplish this, depending on your requirements.
One option is to use MATLAB Coder to generate portable C or C++ code, which can then be compiled into a standalone DLL. There are several limitations with this workflow; an overview can be found on this page. Additionally, only some MATLAB functions support code generation, and some of those that do have limitations. You can review all functions which support code generation here.
Another option is to use MATLAB Compiler to generate a library file which can be used in a C# project. This workflow has fewer limitations (the pages I linked in the above paragraph do not apply), but the generated executable or library file will depend on the MATLAB Compiler SDK. Here's a good page to help you get started with MATLAB Compiler for C# projects.
Finally, this page provides a more extensive overview of MATLAB Coder vs. MATLAB Compiler.
Matthew

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by