Passing matlab matrix, of double type, size 160*170, to Java method

1 回表示 (過去 30 日間)
Pengfei
Pengfei 2012 年 10 月 16 日
Hi, I want Matlab and Java to talk to each other, by passing a Matlab matrix to a Java method.
The Java method definition is like:
public class ABC{
public void getMatrix(int number, double MatlabX[][], double MatlabY[][])
}
While in Matlab, the calling command:
AAA.getMatrix(index, X, Y)
where index is a int scalar, X and Y are double type matrix in two dimensions.
When run the routine, I got "No method 'getMatrix' with matching signature found for class 'ABC'".
Anyone could help? I found on the internet that one can define Java array of arrays in matlab, then it'll become easier to pass the Java array of arrays to the method arguments. But I don't like that, it'll take more time. Do you know how to pass the whole multi-dimensional matrix from matlab to Java?
Thanks!

回答 (1 件)

Pengfei
Pengfei 2012 年 10 月 16 日
Somebody help me! Please-----!

カテゴリ

Help Center および File ExchangeCall Java from MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by