Mercurial > hg > simscene-py
view nonExposed/checkClassPresence.m @ 29:5dcaeea87bdb
addition of logos
author | Lagrange <lagrange@ircam.fr> |
---|---|
date | Fri, 20 Jan 2017 15:50:01 +0100 |
parents | b1901e8d8f5f |
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