Effacer les filtres
Effacer les filtres

Matlab JavaMethod Reference to a cleared variable

1 vue (au cours des 30 derniers jours)
SAMEER ahamed
SAMEER ahamed le 24 Fév 2014
Hi, I am newbie for Mat-lab , now i want to from mat-lab pass values to java method . Below My Java Code :
public static void sampleTest(int width ,int height ,List<Integer> points){
Sample recordedSample = new Sample ();
recordedSample.setHeight(height);
recordedSample.setWidth(width);
recordedSample.getMatrix().add(points);
}
Below My Mat-lab Code :
%From My 10 frames Video file read
width =vidobj.width;
height =vidobj.height;
for int i=1:10
matrix{1,i}=[3,2,,4,2,4,3,2,4];%Dynamic values 1-by-8 matrix
end
clear java;
import edu.lipreading.*;
training = TrainingPanel;
javaMethod('recordSample',training,int32(width),int32(height),matrix{1,i});
Result :When I have run my Mat-lab code i got Error like : Reference to a cleared variable width.
Error in imqacdemo03>pb_liveread_Callback (line 445) javaMethod('recordSample',training,int32(width),int32(height),matrix{1,i});

Réponses (0)

Catégories

En savoir plus sur Call Java from MATLAB dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by