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;
- Compiled into dll
mcc -W lib:simpPlot -T link:lib simpPlot.m
- dll imported in c# code
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.