How to create a barchart
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
RODRICK PERSUN
am 21 Sep. 2017
Kommentiert: RODRICK PERSUN
am 21 Sep. 2017
I have the mean and the max of two data sets. I want to create a bar chart that will compare side by side the mean of data set one with data set two and the max of data set one with data set 2. Does anyone know how I can do this?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 21 Sep. 2017
Use bar():
meanValue1 = mean(data1(:)) % Mean of the first set of data.
maxValue2 = max(data2(:)) % Max of the second set of data.
bar([meanValue1, maxValue2], 'BarWidth', 0.97);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!