How do I make this graph

1 回表示 (過去 30 日間)
Jens Petit-jean
Jens Petit-jean 2021 年 5 月 20 日
コメント済み: Jens Petit-jean 2021 年 5 月 20 日
Hey, I need to make a graph that show the differnce between 2 values for 1000 times, so 1000 times this: X1-X2=differnce.
thes are my first 10 differnces for example:
126269.203650645
-20982519427247.5
766326.222820355
-731476.050410800
203795453.036925
23393.9575117851
38826777889.0777
416.657437202609
-63093.5232709714
222.910340445199
but when I make a histogram or graph (for example "histogram(1000differnces) ") from these values I get a histogram with only one high bin. How do I solve this?

採用された回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 5 月 20 日
Use help documentation how to build histogram plot that gives you all hints.
>> help hist
>> doc histogram
in your case, you'd probably need:
>> histogram(Data, nbins)
Good luck
  4 件のコメント
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 5 月 20 日
It is just because of the distribution of your data. There is nothing wrong with hist() or histogram() options.
Jens Petit-jean
Jens Petit-jean 2021 年 5 月 20 日
Ow thanks

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

その他の回答 (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