Mercurial > hg > simscene-py
view 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 |
line wrap: on
line source
function [] = checkClassPresence( sceneSchedule,sceneObjects ) classIndex=ones(1,length(sceneObjects)); classIndex(unique([sceneSchedule.classId]))=0; if(find(classIndex==1)) classLabel= {sceneObjects.classLabel}; disp({classLabel{logical(classIndex)}}) error('At least one class has been removed during the simulation process') end