3 Dimensional Empty Grid

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.

 Risposta accettata

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

Più risposte (0)

Prodotti

Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by