I used "histogram(values)" to display the histogram, but:
  • How can I display only the box in red?
  • Is there also a way to stretch (dilate) the values on the x-axis ?

 채택된 답변

KSSV
KSSV 2022년 4월 23일

0 개 추천

Read about xlim.
xlim([-0.1 0.1])

댓글 수: 2

Alberto Acri
Alberto Acri 2022년 4월 24일
편집: Alberto Acri 2022년 4월 24일
ok thanks! Is it possible to overlay two histograms with a different color ?
h = histogram(rand(100,1),10) ;
h.FaceColor = 'r' ;

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2022년 4월 23일

댓글:

2022년 4월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by