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

2 ビュー (過去 30 日間)
Philipp
Philipp 2014 年 4 月 9 日
回答済み: James Ryland 2017 年 5 月 11 日
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 Center および File ExchangeData Import and Analysis についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by