Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

A question about the histograms please

3 Ansichten (letzte 30 Tage)
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD am 14 Dez. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi everyone, As can be seen in the attached image, my histogram is built using counts, I WROTE THE FOLLOWING CODE TO CONVERT COUNTS TO %, how can i know exactly the percent of each load bin
figure,
>> histogram([tandem{K}]);
ylabels = get(gca, 'YTickLabel');
ylabels = linspace(0,100,length(ylabels));
set(gca,'YTickLabel',ylabels);

Antworten (1)

the cyclist
the cyclist am 14 Dez. 2017
Bearbeitet: the cyclist am 14 Dez. 2017
As described in the documentation for the histogram function, you can used the 'Normalization' input parameter:
histogram(tandem{K},nbins,'Normalization','probability')
  13 Kommentare
Image Analyst
Image Analyst am 14 Dez. 2017
Is your data in the range 0 to 80, or 0 to 80,000? Either way, just use linspace and put in the overall min and overall max, and the number of bins you want to form the edges.
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD am 14 Dez. 2017
thank you guys for your very powerful help

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by