MATLAB: frequency distribution

I have raw observations of 500 numerical values ​​(from 1 to 25000) in a text file, I want to make a frequency distribution in MATLAB. I tried a histogram (histogram), however I would prefer a frequency distribution curve than blocks and bars.

Any help is appreciated!

+3
source share
2 answers

If you pass two output parameters to HIST , you get the x-axis and y-axis values. Then you can build the data as you wish. For instance,

[counts, bins] = hist(mydata);
plot(bins, counts); %# get a line plot of the histogram
+6
source
+3
source

Source: https://habr.com/ru/post/1740264/


All Articles