How to Array Matrix 1-by-8 Pass to java method error:No method with matching signature found for class?

조회 수: 1 (최근 30일)
Hi,
On Matl-lab Part :
matrix =[1,2,3,4,5,6,7,8]; % example 1-by-8 dimension
list=java.util.ArrayList();
for k=1:length(matrix)
list.add(int32(matrix(k)));
end
training = MainMethod;
training.list_method(list.add(int32(matrix(k))));
On Java Part
public void list_method(List<Integer> points){
//Here I have Expect points result like [1,2,3,4,5,6,7,8]
recordedSample.getMatrix().add(points);//Sample Class object
}
Note: From java Code Method arguments replaced List Integer to Double[] (array) also i have got error same .please let me know how i can solve this issues.?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by