Mercurial > hg > simscene-py
view nonExposed/checkClassPresence.m @ 41:d97f5b9ac6a9
changed to conform more to pep8 (still needs working on); made it to generate a .csv in the end with the individual wav files and the start and end times of each
author | Emmanouil Theofanis Chourdakis <e.t.chourdakis@qmul.ac.uk> |
---|---|
date | Sat, 07 Oct 2017 15:22:02 +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