I am using Monte Carlo Simulation to calculate the probability of failure and I want to paint the points which represents the failure (in red) in the scatter histogram. I can I do it? The code is below
% Histograms
hist(S,20)
hold on
hist(R,40)
set(findobj('Type','patch'),'Facecolor','none','Edgecolor','black')
set(gca,'Fontsize',18,'Fontname','euclid')
xlabel('R & S')
figure
scatterhist(R,S)
xlabel('R'),ylabel('S')