Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to Pass Sprintf result to Java Method arguments List<Integer>points Error:No method 'list_method' with matching signature found for class?

1 次查看(过去 30 天)
Hi,
On Matlab Side i have code like that :
if true
% code
matrix =[33,122,3,2,2,3,2,4];
outsprintf=sprintf('%d,',matrix);
outsprintf=sprintf('[%s\b]',outsprintf);
disp(outsprintf);
import edu.lipreading.*;
training = MainMethod; //Main Java Class Name
training.list_method(outputString);
end
result like :
outsprintf
[6,28,117,28,48,1,48,59] ,[27,45,94,45,70,13,70,62],[14,44,139,44,71,1,71,66] ,[4,32,119,32,72,2,72,65] etc..
*On Java Code Part*
public static void list_method(List<Integer> points){
Sample sample = new Sample();//Class object
sample.getMatrix().add(points);
}
when i have run mat-lab I have got Error like :
No method 'list_method' with matching signature found for class

回答(0 个)

此问题已关闭。

标签

尚未输入任何标签。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by