function matches=find_failures_for_raw_plot(matches,plain_rawmatrix,failure_check_region,failure_threshold)

removers=[];
for ii=1:length(matches)
    if min(plain_rawmatrix(failure_check_region,matches(ii)))>failure_threshold,removers=[removers ii];end  
end
matches(removers)=[];