how to open 3D figure always from the same angle (not the angle it appears rn)?

조회 수: 12 (최근 30일)
Hi guys and girls,
I'm pretty new to MatLab and i'm stuck. How can i open my 3D- rigidBodyTree from a different point of view than it is right now?
Is there an option f.e. that i can rotate die figure, then kinda "save" it and MatLab always opens the Figure from that position/angle?
Thanks a lot!

채택된 답변

Vilém Frynta
Vilém Frynta 2022년 11월 22일
편집: Vilém Frynta 2022년 11월 22일
When you are rotating the figure manually, there will be current azimut and elevation displayed. You need to click the "cube + arrow" icon first.
As my explanation is not the best, I have made screenshot for you to understand easier:
You can write down these numbers and then use them to manually set your desired angle by view(azimut, elevation).
Examples of default angle and edited angle below:
% Default angle
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
mesh(X,Y,Z)
colormap gray
% Edited angle
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
mesh(X,Y,Z)
colormap gray
view(-23,28) % setting the azimut and elevation from the numbers
  댓글 수: 1
moinmoinnoob69
moinmoinnoob69 2022년 11월 27일
Thank you :)
I've already tried to change camera position and so on that is kinda works, but your way is way easier :D

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by