How to get the vertex points of all grid points within a cube?
조회 수: 7 (최근 30일)
이전 댓글 표시
If I have a NxN cube, and wanted to plot a point at each integer x,y,z position included in the cube, how could I iterate through and store all the points to x,y,z point arrays?
댓글 수: 2
Adam
2019년 7월 16일
What do you mean by 'I have a NxN cube'? In what format do you have it at the moment?
채택된 답변
Michael Ferguson
2019년 7월 16일
댓글 수: 1
Adam
2019년 7월 16일
doc ndgrid
should be able to give you the points. It's advisable to plot them all as a single scatter plot, otherwise performance can suffer the more graphics objects you have and N^3 gets big pretty fast!
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!