How to plot histograms of two different classes in a single plot?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sidra Aleem
el 7 de Ag. de 2017
Respondida: José-Luis
el 7 de Ag. de 2017
I have to plot histogram of two clases in to single plot. One class is of distance of authenticated users and others if of distance of intruduers achieved by L2-NORM.
intruder_dist =[0.02, 0.05,0.03......] and is its corresponding number is: intruder_num = [10,2,40,..........]
Same is with authencticated users distances. authenticated_dist =[0,0.002,0.001......] and another its corresponding number: authenticated_num = [30,50,70,..........] Below is the histogram that I want to achieve. How to plot it in matlab. Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166577/image.jpeg)
0 comentarios
Respuesta aceptada
José-Luis
el 7 de Ag. de 2017
histogram(rand(100,1));
hold on
histogram(rand(100,1)-2,'FaceColor','r');
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Histograms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!