Mercurial > hg > simscene-py
annotate nonExposed/checkClassPresence.m @ 34:39399de892ef
better handling of displays with pleasantness colors
author | Mathieu Lagrange <mathieu.lagrange@cnrs.fr> |
---|---|
date | Fri, 09 Jun 2017 16:37:50 +0200 |
parents | b1901e8d8f5f |
children |
rev | line source |
---|---|
mathieu@14 | 1 function [] = checkClassPresence( sceneSchedule,sceneObjects ) |
mathieu@14 | 2 |
mathieu@14 | 3 classIndex=ones(1,length(sceneObjects)); |
mathieu@14 | 4 classIndex(unique([sceneSchedule.classId]))=0; |
mathieu@14 | 5 |
mathieu@14 | 6 if(find(classIndex==1)) |
mathieu@14 | 7 classLabel= {sceneObjects.classLabel}; |
mathieu@14 | 8 disp({classLabel{logical(classIndex)}}) |
mathieu@34 | 9 fprintf(2, 'At least one class has been removed during the simulation process\n') |
mathieu@14 | 10 end |
mathieu@14 | 11 |
mathieu@14 | 12 |