Apparent distance conservation in Matlab plot window while rotating 3D objects

3 ビュー (過去 30 日間)
Nicolas Douillet
Nicolas Douillet 2023 年 8 月 12 日
移動済み: Bruno Luong 2023 年 8 月 16 日
Hey,
When you plot a 3D object in Matlab and turn it around the apparent distance to this object will change, even if you set axis equal first for instance.
As far as I know, this has always been so, and still is (though my version is 2019b, not the latest one).
Would you please know a way, an other option to set, to make them static ?
Thank you
Best,
Nicolas
Edit : by the way, do you know an option to change/tune the field of view of the camera ?
  5 件のコメント
Bruno Luong
Bruno Luong 2023 年 8 月 13 日
Turn on the cameratoobar, and the rotation with this tool might also meets your reques) of constant distance?
figure
surf(peaks(40))
cameratolbar
Nicolas Douillet
Nicolas Douillet 2023 年 8 月 16 日
移動済み: Bruno Luong 2023 年 8 月 16 日
Ok I realized I have to be even clearer.
I am going to eplore the camera toolbar possibilities -which I didn't really know until now- and then come back here -with a relevant example if possible- if necessary. Thank you for your comments and answers.

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

回答 (1 件)

John D'Errico
John D'Errico 2023 年 8 月 12 日
I'm confused. If you plot two things in 3-d, you change the view using the function view.
But OF COURSE things change when you rotate the axes.
x = [1;3];
y = [2;8];
z = [0;5];
plot3(x,y,z,'-o')
axis equal
% the default view
[az,el] = view
az = -37.5000
el = 30
% new figure
plot3(x,y,z,'-o')
axis equal
view(-20,-39)
And in the second, the two points appear now virtually next to each other. So you would expect the apparent distance to change, as a function of the perspective. I could have set them dead on, so the two points would be on top of each other too.
So what do you think is wrong in this?
  1 件のコメント
Nicolas Douillet
Nicolas Douillet 2023 年 8 月 13 日
Thank you for this answer. However this is not what I mean. I am talking abour the distance between the camera / the observer and the object.

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

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by