필터 지우기
필터 지우기

how do I call a MATLAB dll in C#

조회 수: 11 (최근 30일)
Jonathan Klabacha
Jonathan Klabacha 2012년 10월 15일
편집: Anna Fritz 2021년 7월 15일
I am looking to compile a MATLAB plotting script into a dll and implement it with a windows c# project that has been developed.
What has been done thus far
- simple code created
function [xOut,yOut] = simpPlot(szRand)
x = 1:1:szRand;
xOut = x;
y = rand(1,szRand);
yOut = y;
plot(x,y)
- Compiled into dll
mcc -W lib:simpPlot -T link:lib simpPlot.m
- dll imported in c# code
[DllImport("simpPlot.dll")]
public static extern void simpPlotInitialize();
Is it possible to display the plot through this method? What is the best way to pass information into the dll? My knowledge is limited in this sense and examples would be appreciated.

답변 (1개)

Anna Fritz
Anna Fritz 2021년 7월 15일
편집: Anna Fritz 2021년 7월 15일
Hello, I am having the same issues. Does anyone have helpful resourses? I have searched the web but haven't found anything yet. Thanks!

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by