Basic histogram with histogram function.
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
daniel caltrider
il 14 Mag 2020
Commentato: Ameer Hamza
il 15 Mag 2020
I am trying to create a histogram from a data set in excel by importing it to matlab.
I can't get the histogram function to work with a table or data array after import.
I need to use the data set to make a histogram with a bin width of 50 and then subtract one entry per bin.
how do I reference the array or table in the histogram function? how would I subtract one entry per bin?
any help would be greatly appreciated.
3 Commenti
Risposta accettata
Ameer Hamza
il 15 Mag 2020
Modificato: Ameer Hamza
il 15 Mag 2020
To decrease, one entry per bin, try this
[num,~,~]=xlsread('histogram2.xlsx');
d=num;
h = histogram(d,50);
h.BinCounts = h.BinCounts-1
9 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Histograms in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!