How do I provide inputs to matlab API from.net

1 vue (au cours des 30 derniers jours)
Benedict Eiynk
Benedict Eiynk le 26 Mar 2020
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

Réponses (1)

Kojiro Saito
Kojiro Saito le 14 Avr 2020
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.

Catégories

En savoir plus sur MATLAB Compiler SDK dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by