フィルターのクリア

Create space between binEdges Historgram

2 ビュー (過去 30 日間)
Mohamed
Mohamed 2023 年 2 月 19 日
コメント済み: Mohamed 2023 年 2 月 19 日
Hello,
I'am tryning to creat space between binedges in the histogram below
I wanted to choose the interval and the step of the x-axis knowing that I wanted to present the cumulative values for each value of X
I want to get a histogram like the one below to see esaslyh my data and x values
thanks for your help

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2023 年 2 月 19 日
Try
data=randi([1,10],[100,100]);
hist_counts = histcounts(data);
%............^ change the value as per required result
bar(hist_counts, 0.5);
  1 件のコメント
Mohamed
Mohamed 2023 年 2 月 19 日
Thank you for answer, it's helpfuel,
If I wanna for example present your histogram with a step of 3
so we will have for 3>>> 3000
6>>>>>2900
9>>>> 2800
and so on, (we cumlate the 1 , 2 and results, to present them directly with on the step 3)
Could you please if it's possible to show me how to do it
thanks you

サインインしてコメントする。

カテゴリ

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