Hey!
I have an 128x128x128 array C(128,128,128) filled with positive integers. I need to make a 3D scatter plot, where my array indices (i,j,k) will correspond to x,y,z coordinates and the value of each array element C(i,j,k) will determine its corresponding point colour. Any ideas on how I can accomplish that?

 채택된 답변

Sean de Wolski
Sean de Wolski 2014년 9월 8일

0 개 추천

I would use slice() (or maybe an isosurface) to slice it across various planes. A 3d scatter plot that size will look like a cubic blob.

댓글 수: 3

Andriana
Andriana 2014년 9월 8일
I kind of want it to look like a cubic blob, as I'm working on a cellular automaton problem. I need to have a look at my data as a whole.
In that case:
[xx,yy,zz] = meshgrid(1:128); % build grid
scatter3(xx(:),yy(:),zz(:),C(:))
Andriana
Andriana 2014년 9월 8일
thank you!I almost got what I wanted! :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2014년 9월 8일

댓글:

2014년 9월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by