plotting a bar chart with "text" categories on the x-axis

7 Ansichten (letzte 30 Tage)
AWi
AWi am 17 Apr. 2018
Beantwortet: Ahmet Cecen am 17 Apr. 2018
Is it possible to create a bar chart like this in MATLAB?
Any guidance or help is appreciated!
(I included a csv-file with the data for this chart.)

Antworten (1)

Ahmet Cecen
Ahmet Cecen am 17 Apr. 2018

Here is a start:

example = readtable('example.CSV');
example = sortrows(example,'Group');
h = bar(table2array(example(:,3:6)),'stacked');
set(gca,'xticklabel',table2array(example(:,2)));

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by