How do I provide inputs to matlab API from.net

1 回表示 (過去 30 日間)
Benedict Eiynk
Benedict Eiynk 2020 年 3 月 26 日
回答済み: Kojiro Saito 2020 年 4 月 14 日
Greetings,
My organization is in the process of implementing modeling software that uses significant matrix inversion techniques. Doing this completely in .NET is either too slow or runs out of resources so we are looking at calling a Matlab dll for the calculations. What we cannot determine is how to generate a dll that allows us to send parameters to the dll from .NET that will be used for the Matlab calculations. If there is documentation that covers this functionality, I would appreciate being pointed to it, I have been unsuccessful in finding it on my own.
Thanks in advance,
Ben

回答 (1 件)

Kojiro Saito
Kojiro Saito 2020 年 4 月 14 日
Here are examples of dll created from MATLAB Compiler SDK.
MATLAB sample which will be compiled as .NET Assemby.
C# Sample which integrates with the dll below.
.NET Assembly compiled by MATLAB Compiler SDK supports two types of data interface "MW Array API" and "Native .NET API". For detail, please see this document.
Also, between .NET and MATLAB dll, below is a document of the data conversion rules.

カテゴリ

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