load ~/Téléchargements/results.mat


val{1}=[10 30 50];
val{2}=[0 6 12];
val{3}=[0 1];

for jj=1:length(val{1})
   indMs(jj,:)=cellfun(@(x) ~isempty(strfind(x,['meanSpace_' num2str(val{1}(jj))])),filenames);
end
for jj=1:length(val{2})
   indEbr(jj,:)=cellfun(@(x) ~isempty(strfind(x,['ebr_' num2str(val{2}(jj))])),filenames);
end
for jj=1:length(val{3})
   indOvlp=cellfun(@(x) ~isempty(strfind(x,'ovlp_1')),filenames);
end

[~,indBestTresh]=max(max(F,[],1));

figure(1)
subplot 221
plot(F(indOvlp & indMs(1,:),indBestTresh),'-*')
hold on
plot(F(indOvlp & indMs(2,:),indBestTresh),'-r*')
plot(F(indOvlp & indMs(3,:),indBestTresh),'-y*')
hold off
ylim([0 0.6])
ylabel('F')
title('polyphonic')
set(gca,'xtick',1:3,'xticklabel',val{2},'box','off')
xlabel('EBR')
subplot 222
plot(F(~indOvlp & indMs(1,:),indBestTresh),'-*')
hold on
plot(F(~indOvlp & indMs(2,:),indBestTresh),'-r*')
plot(F(~indOvlp & indMs(3,:),indBestTresh),'-y*')
hold off
title('monophonic')
set(gca,'xtick',1:3,'xticklabel',val{2},'box','off')
ylim([0 0.6])
xlabel('EBR')
ylabel('F')

subplot 223
plot(Feb(indOvlp & indMs(1,:),indBestTresh),'-*')
hold on
plot(Feb(indOvlp & indMs(2,:),indBestTresh),'-r*')
plot(Feb(indOvlp & indMs(3,:),indBestTresh),'-y*')
hold off
ylim([0 0.3])
ylabel('Feb')
title('polyphonic')
set(gca,'xtick',1:3,'xticklabel',val{2},'box','off')
xlabel('EBR')
subplot 224
plot(Feb(~indOvlp & indMs(1,:),indBestTresh),'-*')
hold on
plot(Feb(~indOvlp & indMs(2,:),indBestTresh),'-r*')
plot(Feb(~indOvlp & indMs(3,:),indBestTresh),'-y*')
hold off
title('monophonic')
set(gca,'xtick',1:3,'xticklabel',val{2},'box','off')
ylim([0 0.3])
xlabel('EBR')
ylabel('Feb')
legend(arrayfun(@(x) ['meanSpace ' num2str(x)],val{1},'UniformOutput',false))
disp('')