comparison nonExposed/checkClassPresence.m @ 14:b1901e8d8f5f

initial commit
author Mathieu Lagrange <mathieu.lagrange@cnrs.fr>
date Tue, 17 Mar 2015 09:34:13 +0100
parents
children 39399de892ef
comparison
equal deleted inserted replaced
-1:000000000000 14:b1901e8d8f5f
1 function [] = checkClassPresence( sceneSchedule,sceneObjects )
2
3 classIndex=ones(1,length(sceneObjects));
4 classIndex(unique([sceneSchedule.classId]))=0;
5
6 if(find(classIndex==1))
7 classLabel= {sceneObjects.classLabel};
8 disp({classLabel{logical(classIndex)}})
9 error('At least one class has been removed during the simulation process')
10 end
11
12