How to create a correct barplot from table?
Ältere Kommentare anzeigen
Dear All,
I have a table T where the first column values are: '< 20°', '21°- 30°', '31° - 40°', '41° - 50°', '51° - 60°', '> 61°'. I attached a figure about the T table. I created a bar plot by:
bar(categorical(T{1:6,1}),T{1:6,2:10});
legend({"0","1","2","3","4","5","6","7","8"});
I attached the resulted figure. The first x-axes value is '21°- 30°' and the value of '< 20°' is at the end. I do not understand why. Could someone write a suggestion to fix this issue?
1 Kommentar
Ameer Hamza
am 10 Sep. 2020
Can you attach the table T as a mat file?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Data Distribution Plots finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!