How can I make a 3D bar chart for a 1044X22 array which is colored with height?

3 次查看(过去 30 天)
When I do bar3(Data) for a 1044X21 array, I get this figure (pfa the data)
But I want to make a figure like this showing the colored bars clearly
  4 个评论

请先登录,再进行评论。

采纳的回答

Star Strider
Star Strider 2022-6-15
I am not certain how clearly that sort of matrix can be defined
Try this —
Data = rand(1044,22);
figure
b = bar3(Data);
colorbar
axis square
for k = 1:length(b)
b(k).EdgeColor = 'none';
zdata = b(k).ZData;
b(k).CData = zdata;
b(k).FaceColor = 'interp';
end
.

更多回答(0 个)

类别

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

标签

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by