Clear Filters
Clear Filters

Converting probability distribution plot into a histogram

5 views (last 30 days)
I have a pareto distribution plot, on x axis it have distance, and on y axis it have probablity value.
for example, i have probability value 0.2 for least value of distance say 0.2km and 0.001 value for 200km.
now what I want is extract different distace values according to their probability. for examples the distance 0.2km will be selected maximum times and higher values like 200km will be selected minimum times.

Answers (2)

Star Strider
Star Strider on 28 Jul 2023
It would definitely help to have more information, and specifically the code and data that created that plot, in order to experiment with it.
That aside, see if the pareto function will do what you want. If so, it is relatively straightforward to select and extract the bar plot object to plot it separately.

Torsten
Torsten on 28 Jul 2023
Edited: Torsten on 28 Jul 2023
Use
to compute random numbers from the Pareto Distribution if you know its parameters.
By the way: The probability distribution plot is the best histogram you can get.

Community Treasure Hunt

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

Start Hunting!