Send a char from .NET
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hi,
I have a function where the input is a 'char'. I have exported this function with the compiler and imported it on my .NET application. For the others functions where as an input i'm using a double i can use the following:
testClassMatlab cl = null;
MWNumericArray input = null;
MWNumericArray output = null;
MWNumericArray output1 = null;
MWArray[] result = null;
// Initialise our new matlab object
cl = new testClassMatlab();
input = 6;
// Make the call to the method we exported
result = cl.makesquare(2, input );
This is an example: http://uk.mathworks.com/help/compiler_sdk/dotnet/integrate-your-net-assembly-into-a-c-application.html
It is working fine. But with a char -> string i have tried the following but without success:
MWCharArray input = null;
input = "p";
result = cl.MtbRM1(2,input);
It look like that the format of the input is not correct.
Any help?
Thanks!
Simone
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!