Mercurial > hg > simscene-py
view nonExposed/checkClassPresence.m @ 43:a8e3d63653b6
Fixed a bug with the patterns not appearing in the resulting .xls file. More pep8 fixes.
author | Emmanouil Theofanis Chourdakis <e.t.chourdakis@qmul.ac.uk> |
---|---|
date | Sun, 08 Oct 2017 15:23:50 +0100 |
parents | 39399de892ef |
children |
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)}}) fprintf(2, 'At least one class has been removed during the simulation process\n') end