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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 3월 2일

댓글:

2019년 3월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by