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

조회 수: 4 (최근 30일)
Rizwan Ali
Rizwan Ali 2016년 2월 17일
답변: Walter Roberson 2016년 2월 18일
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.

채택된 답변

John BG
John BG 2016년 2월 18일
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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2016년 2월 18일

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by