Sub category plots in MATLAB?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to plot a graph with sub category. It should look something like the graph in the image.

0 Kommentare
Antworten (1)
Shubham Khatri
am 7 Dez. 2020
Hello,
Please take a look at the following code
example = readtable('example.CSV');
example = sortrows(example,'Group');
h = bar(table2array(example(:,3:6)),'stacked');
set(gca,'xticklabel',table2array(example(:,2)));
Also please take a look at this answer
Hope it helps
0 Kommentare
Siehe auch
Kategorien
Mehr zu Graphics Performance 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!