Mercurial > hg > simscene-py
annotate nonExposed/checkClassPresence.m @ 51:ebf92ed7d680 tip master
Added -fd (--full-duration) argument.
author | Emmanouil Theofanis Chourdakis <e.t.chourdakis@qmul.ac.uk> |
---|---|
date | Sun, 30 Sep 2018 13:21:49 +0100 |
parents | 39399de892ef |
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 |