필터 지우기
필터 지우기

How to plot histograms of two different classes in a single plot?

조회 수: 2 (최근 30일)
Sidra Aleem
Sidra Aleem 2017년 8월 7일
답변: José-Luis 2017년 8월 7일
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.

채택된 답변

José-Luis
José-Luis 2017년 8월 7일
histogram(rand(100,1));
hold on
histogram(rand(100,1)-2,'FaceColor','r');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!