Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

1 visualizzazione (ultimi 30 giorni)
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

Risposte (0)

Questa domanda è chiusa.

Tag

Non è stata ancora inserito alcun tag.

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by