Electrodes = repmat({'B1' 'B2' 'B3' 'B4'},1,12);
DepolType = [repmat({'Type1'},1,24),repmat({'Type2'},1,24)];
Samples=repmat({'Sam.1' 'Sam.2' 'Sam.3' 'Sam.4' 'Sam.5' 'Sam.6'},1,8);
boxplot(Plot2,{Electrodes,DepolType, Samples},'colors',C,'factorgap',[20 2 2]...
,'labelverbosity','minor','plotstyle','compact', 'LabelOrientation', 'horizontal');
这个没有实现想要的功能,但是可以参考