How to get the vertex points of all grid points within a cube?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Michael Ferguson
el 16 de Jul. de 2019
Respondida: Bruno Luong
el 16 de Jul. de 2019
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 comentarios
Adam
el 16 de Jul. de 2019
What do you mean by 'I have a NxN cube'? In what format do you have it at the moment?
Respuesta aceptada
Michael Ferguson
el 16 de Jul. de 2019
1 comentario
Adam
el 16 de Jul. de 2019
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!
Más respuestas (1)
Ver también
Categorías
Más información sobre Scatter Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!