how to use cells as xlabel in stackedplot

1 次查看(过去 30 天)
I have a matrix with 5 columns and the names of the variables as cells. I want to use the cells as the ylabels in the stackedplot. Can anyone help?

采纳的回答

Adam Danz
Adam Danz 2020-8-21
编辑:Adam Danz 2020-11-19
First convert your matrix to a table and use the variable names in your cell array.
T = array2table(x, 'VariableNames', varNameArray);
stackedplot(T)
Also see the DisplayLabels property.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Translated by