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.

 采纳的回答

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

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Annotations 的更多信息

产品

版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by