question about 'view' function

2 views (last 30 days)
Yu Li
Yu Li on 25 Apr 2019
Commented: Star Strider on 25 Apr 2019
Hi:
I have a question about 'view' function.
as can be found in the documentation above, the view is determined by two angles. however, even using the same angle, if you look at the object from different distance, the view would still have difference (zoom in/out effect). so, my question is that, does Matlab have anyway to control this distance? or it is a default number?
Thanks!
Yu

Accepted Answer

Star Strider
Star Strider on 25 Apr 2019
There are a number of options available. One that may do what you want is the 'CameraPosition' (link) axes property. There are several others you can explore that are in the View section of the documentation.
  2 Comments
Yu Li
Yu Li on 25 Apr 2019
Thank you. after look through this documentation, looks like the carema position should use [x,y,z] as inputs, and 'view' function need two angles as inputs.
perhaps I need to write some short code to use two angles+distance to control the view.
Thank you very much.
Yu
Star Strider
Star Strider on 25 Apr 2019
My pleasure.
The camera functions allow you to place the camera at whatever distance you choose from the axes (or at least that was true when I last used it a while ago), with respect to the [x y z] coordinates of the axes.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!