this plot3 looks 2D on live script (pointing downwards as it should), and 3D (pointing sideways for no reason), why?

1 view (last 30 days)
Niccolò Moretto
Niccolò Moretto on 20 Oct 2021
Edited: Niccolò Moretto on 20 Oct 2021
hold on
plot3(Mk0(:,1),Mk0(:,2),Mk0(:,3),'r*')
plot3(Mk1(:,1),Mk1(:,2),Mk1(:,3),'b*')
plot3(Mk2(:,1),Mk2(:,2),Mk2(:,3),'g*')
plot3(p_0(:,1),p_0(:,2),p_0(:,3),'k*')
plot3(p_1(:,1),p_1(:,2),p_1(:,3),'co')
grid on
hold off

Answers (1)

Star Strider
Star Strider on 20 Oct 2021
I cannot run that since the data are missing.
However to see it in all its 3D glory, use the view function to rotate the camera (viewing angle and orientation).
.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by