Mercurial > hg > simscene-py
view nonExposed/checkClassPresence.m @ 27:786f7138a2d5
fix noise level computation usin power(10,) instead of exp
author | gregoire lafay <gregoirelafay@sfr.fr> |
---|---|
date | Sat, 23 Jan 2016 19:36:54 +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