Visualizing 4-dimensional data

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.

Answers (1)

Walter Roberson
Walter Roberson on 7 Jul 2021
volumeViewer, which permits importing colormap

2 Comments

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
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.

Sign in to comment.

Categories

Asked:

on 7 Jul 2021

Commented:

on 8 Jul 2021

Community Treasure Hunt

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

Start Hunting!