Plotting a 3D matrix in matlab (4D data)

3 visualizaciones (últimos 30 días)
Rizwan Ali
Rizwan Ali el 17 de Feb. de 2016
Respondida: Walter Roberson el 18 de Feb. de 2016
If I have a 9*9*9 matrix. Each of which index has a certain value e.g. A[4][3][2]=0.43. This makes it a 4D data. How can I plot this as a 4D data meaning a 3D data with colour for the 4th dimension. P.S. I am a newbie, so please give as elaborate ans as simple an answer as possible.

Respuesta aceptada

John BG
John BG el 18 de Feb. de 2016
have a look at the following points:
1.- correction: where you say ' .. A[4][3][2]=0.43. This makes it a 4D data ..'
consider instead saying ' .. this makes it 3D matrix ..'
the reason being that your question takes off with the statement matrix size 9*9*9: this is a 3D cube.
A size 9 units 3D cube has volume 9*9*9.
A size 9 4D cube have 4D volume 9*9*9*9.
2.- the link
contains a 4D cube visualized in 3D. They sell visualizations of larger than 3D objects
3.- MATLAB CENTRAL has a very interesting example
4.- Another very popular MATLAB CENTRAL entry is Konsoulas 'Paradoxical Behavior of multidimensional data'
5.- If you are going to find lengths surfaces and volumes in larger than 3D, have a look to Mike Hosea integralN.m
If you find this answer of any help solving this question, please click on the thumbs-up vote link, thanks in advance
John

Más respuestas (1)

Walter Roberson
Walter Roberson el 18 de Feb. de 2016

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by