view nonExposed/checkClassPresence.m @ 19:8d33767e070a

fix channel export, norm, and crossfade length
author Gregoire Lafay <gregoire.lafay@irccyn.ec-nantes.fr>
date Wed, 13 Jan 2016 16:27:09 +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