Variable width histogram and curve on the same graph?

조회 수: 1 (최근 30일)
Anas Rao
Anas Rao 2017년 1월 14일
댓글: Anas Rao 2017년 1월 17일
I want to make a hostogram of 6-7 data and each have different width. Further, as I have converted the curve into histogram. So, I want to make such that curve, variable width histogram on the same graph. Kindly tell me how I make it

채택된 답변

Steven Lord
Steven Lord 2017년 1월 15일
Call histogram with unequally-spaced edges.
x = 49*rand(1, 1e4);
histogram(x, (1:7).^2)
To plot a histogram and another curve on the same axes, look at the hold function.
  댓글 수: 1
Anas Rao
Anas Rao 2017년 1월 17일
Thankyou. Can you please explain me this by more simple example. So, that I could understand it easily

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by