
Convert 2D heatmap to 3D bar plot
조회 수: 16 (최근 30일)
이전 댓글 표시
Hi All!
I have a heatmap (attached below, made using imagesc) which represents the average result of 10 simulations. I would like to include the standard deviation for each parameter combination as well. What I would like to make is a 3D bar plot where the height of the bars corresponds to the standard deviation of a specific parameter combination and the color of the bars is the same as in the 2D heatmap. How could I achieve this?
Thank you for your help in advance!

댓글 수: 0
답변 (1개)
Cris LaPierre
2025년 2월 11일
There are two approaches I can think of, but they requrie some manual formatting. Both use bar3.

2. Assign a solid color to each bar based on height.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!