I want to use Matlab function in C#

Hi My English is very bad. Please Understand ...
It was successful to move Matlab dll in C# but I have a problem.
I want to receive 2 return from Matlab to C#. (Matlab 2 return => C# 2 receive)
For example function [A1,A2] = WFDH(ix, iy, iz)
AA = ix; BB = iy; CC = iz;
A1 = 0 A2 = 1
end
result => A1 =0 A2 =1
and C#
MWNumericArray T1 = new MWNumericArray(new Int16());
MWNumericArray T2 = new MWNumericArray(new Int16());
MWNumericArray T3 = new MWNumericArray(new Int16());
Class2 Inverse = new Class2();
T1 = Convert.ToDouble(textBox159.Text);
T2 = Convert.ToDouble(textBox160.Text);
T3 = Convert.ToDouble(textBox161.Text);
int result = ((MWNumericArray)Inverse.FDH((MWArray)T1, (MWArray)T2, (MWArray)T3)).ToString();
%%%%%result ==> just save A1 data ㅠㅠ ,,, How to save A1 and A2 at result ?????
I'm think about solve way 1. Point, Static, struct in the matlab ==> but it is just function so it is impossible in the Matlab ㅠㅠ

Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 9 Sep. 2015

Bearbeitet:

am 9 Sep. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by