I'm trying to create a 3 dimensional grid that is empty with the dimensions of -.8 and .8 for x, y, and z. Incrementing by .2.
But I'm not sure how to accomplish this. If it's not possible then maybe having some line at the origin will work too?
Edit: Basically I want to start my program with an empty 3d grid, so I can make functions to draw things within the grid.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 2 de Mzo. de 2019

2 votos

v = -0.8:.2:0.8;
view(3);
xlim(v([1 end]));
ylim(v([1 end]));
zlim(v([1 end]));
xticks(v);
yticks(v);
zticks(v);
grid on

Más respuestas (0)

Categorías

Productos

Versión

R2018b

Etiquetas

Preguntada:

el 2 de Mzo. de 2019

Comentada:

el 2 de Mzo. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by