i use the example 1 in train_cascade.m
all positive pictures are 24x24
just change the number of training and testing to be smaller
but it always came out the error message as follows
??? Attempted to access options.betaperstage(1); index out of bounds because numel(options.betaperstage)=0.
Error in ==> train_cascade at 527
options.stat(: , nb_stage) = [stat(:) ; options.betaperstage(nb_stage) ; options.alphaperstage(nb_stage)];