Variable width histogram and curve on the same graph?

2 ビュー (過去 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 Center および File ExchangeHistograms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by