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.

 採用された回答

Walter Roberson
Walter Roberson 2019 年 3 月 2 日

2 投票

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

1 件のコメント

Jake Young
Jake Young 2019 年 3 月 2 日
Perfect thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

製品

リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by