how to plot histogram from an array ?
71 views (last 30 days)
Image Analyst on 22 Dec 2021
Try putting each of those into a vector. The x axis is actually Number, not frequency, and the bin heights (the counts) are actually the frequency. So you'd do
frequency = [3,9,13,21,9,4,1];
Number = linspace(11.945, 12.035, length(frequency));
the cyclist on 22 Dec 2021
Histograms start from the data before they have been binned. You just need a bar chart. If your data are stored in a MATLAB table named tbl, then
You didn't really tell us how the data are stored, so you may need to manipulate the data first, to get it in the proper format.