필터 지우기
필터 지우기

How Matlab JavaMethod pass values

조회 수: 1 (최근 30일)
SAMEER ahamed
SAMEER ahamed 2014년 2월 24일
Hi,
I have matlab values want's to pass java class method.But *I got Error Reference to a cleared variable matrix{1,i}*
Example : Java Class :
if true
% code
public Sample(String id) {
super();
this.id = id;
this.matrix = new Vector<List<Integer>>();
}
end
*//Here String id hello
//out put Sample [id=hello, matrix=[]]*
My Mat-lab Code Below like :
for i=1:10
id ="hello";
matrix{1,i}=[4,4,22,3,2,2,2,22];%1-by-8 matrix
end
clear java;
import edu.lipreading.*;
training = TrainingPanel;
javaMethod('Sample',training,matrix{1,i});

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by