Using Matlab DLL in C# and the problem of converting arrays
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a piece of code in Matlab and convert it to dll file to use in C#.
if true
MWNumericArray arr1 = teee; % n by 1
MWNumericArray arr2 = Bx; % n by 1
MWNumericArray arr0 = CoefAx; % n by n array
amgClass aobj = new aClass();
MWArray resultA = aobj.A((MWArray)arr0, (MWArray)arr2, (MWArray)arr1, 3, 2, 1, 1, 200, 0.000001, 2, 0.25);
end
The error I am getting is about the dimension of matrix which exceed in the code. I check the matlab code with matlab data and it works.
The only thing I feel can be a problem is about input dimensions.
C# 1D arrays are like : 1 by n but in Matlab they are like: n by 1
How can I change this arrangement? Any comments?
Thank you.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!