I have a 3D matrix of size 52x111x150 where each value in the matrix is a power value. How can I plot or visualize this data in a 3D space such that each value in the matrix is a single point in the plot? I would also like each point in the 3D plot to be a specific color (through a colormap where color represents the magnitude/intensity of the given matrix value with respect to the other values in the matrix).
I have already made a colormap, but just am unsure of how to plot the matrix so that I incorporate the colormap into the visualization.

답변 (1개)

Walter Roberson
Walter Roberson 2021년 7월 7일

0 개 추천

volumeViewer, which permits importing colormap

댓글 수: 2

Aarushi Negi
Aarushi Negi 2021년 7월 8일
Thank you! I was able to visualize the matrix and import colormap.
I have another question - I want the color of each value in the matrix to vary more along the colormap (which is blue, white, and red). If blue is supposed to represent the low values in the 3d matrix (-100 or below), white is meant to represent the median values, and red is meant to represent the highest values in the 3d matrix (100 and above), what code can i write to make this occur in the volume viewer app? At the moment, the 3d matrix visualized in volume viewer just looks very red
Walter Roberson
Walter Roberson 2021년 7월 8일
You can click on the colormap bar, and doing so will insert a slider knob that you can move to change the balance points. You can do that multiple times.

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

카테고리

도움말 센터File Exchange에서 Color and Styling에 대해 자세히 알아보기

질문:

2021년 7월 7일

댓글:

2021년 7월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by