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

조회 수: 1 (최근 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
KSSV
KSSV 2022년 6월 15일
bar3(Data)
ylim(500 560])
As the data is very fine, you cannot see colors..you need to zoom.

댓글을 달려면 로그인하십시오.

채택된 답변

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에서 Polar Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by