필터 지우기
필터 지우기

How to Pass matrices/vector's values to Java Method argument List<Integer> points

조회 수: 1 (최근 30일)
Hi,
I am newbie for mat-lab environment , below i have mentioned like
On Java
public void list_method(List<Integer> points){
Sample sample = new Sample ();
sample.getMatrix().add(points);
}
On Matlab
matrix =[22,33,22,4,2,3,2,1]; %1-by-8 matrix
[222,43,2,2,5,3,2,1] etc...
import edu.lipreading.*;
import java.util.Vector;
training = MainMethod;
training.list_method(matrix);
from Mat-lab I have like that values ,so i need to pass these values in java method arguments.
so i got error like :
*No method 'list_method' with matching signature found for class
'edu.lipreading.MainMethod'.*
  댓글 수: 1
SAMEER ahamed
SAMEER ahamed 2014년 3월 6일
Please Look at my java Class Code I have Attached my Zip File. My Mat-lab Code result like after applying sprintf function
array_list =[3,1,3,2,3,4,2,2,3]; array_list =[54,33,2,4,2,4,2,55]; etc. so i would like to pass these values to java method arguments List<Integer> points.

댓글을 달려면 로그인하십시오.

답변 (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