Is it possible to visualise NxNxN mesh/matrix as a figure or image?

조회 수: 5 (최근 30일)
Sebastian Dahl Sandbu
Sebastian Dahl Sandbu 2022년 12월 9일
답변: DGM 2022년 12월 12일
I have a physical object created as matrix with size 300x300x300 and with values/intensities in each position. Currently I'm using figure, imagesc() to visualise specified planes, but I would like to visualize the whole object. Is there any way to do this?
Thanks!

답변 (2개)

Vinayak Choyyan
Vinayak Choyyan 2022년 12월 12일
Hi Sebastian,
As per my understanding, you would like to plot a 3D object, whose (x,y,z) points you have in a matrix. You also have the intensity of each point.
This can be done using the ‘surf()’ function in MATLAB. For an example, see Surface plot - MATLAB surf - MathWorks India. Set the ‘FaceAlpha’ Name-Value pair to ‘flat’ and set the ‘AlphaData’ property to the intensity matrix.

DGM
DGM 2022년 12월 12일
You can probably use volshow() or the Volume Viewer app, depending on how things are scaled. It really depends what the data looks like and how you want to present the information.

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by