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

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.)

답변 (1개)

Ahmet Cecen
Ahmet Cecen 2018년 4월 17일

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)));

카테고리

도움말 센터File Exchange에서 App Building에 대해 자세히 알아보기

제품

질문:

AWi
2018년 4월 17일

답변:

2018년 4월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by