MATLAB Answers

How do I provide inputs to matlab API from.net

조회 수: 1(최근 30일)
Benedict Eiynk
Benedict Eiynk 26 Mar 2020
답변: Kojiro Saito 14 Apr 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

  댓글 수: 0

댓글을 달려면 로그인하십시오.

답변(1개)

Kojiro Saito
Kojiro Saito 14 Apr 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.

  댓글 수: 0

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by