How to do a 3D plot of a grid with scalar values at every postion?

6 次查看(过去 30 天)
Hello everybody,
I have a threedimensional array that represents a grid with scalar values at every position. Apart from being a little bit bigger and with non-fictional values, something like this:
A(1,1,1) = 1;
A(2,1,1) = 2;
A(1,2,1) = 3;
A(1,1,2) = 4;
A(2,2,1) = 5;
A(2,1,2) = 6;
A(1,2,2) = 7;
A(2,2,2) = 8;
Now I want to visualize it, that there is a point at every postion with a colour depending on the value of the postion. Something like this:
or like this:
Thanks in advance for your help!

回答(1 个)

James Ryland
James Ryland 2017-5-11
You might want to try this, it is a full fledged matlab application for visualizing 3D density matrices. It was designed to work with fmri and mri but it can handle arbitrary 3D arrays stored as .mat files. Right now I'm going through the matlab answers looking for questions that might be addressed by this software. Let me know if it works!
https://www.mathworks.com/matlabcentral/fileexchange/59161-volumetric-3?s_tid=srchtitle

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by