question about 'view' function

조회 수: 2 (최근 30일)
Yu Li
Yu Li 2019년 4월 25일
댓글: Star Strider 2019년 4월 25일
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

채택된 답변

Star Strider
Star Strider 2019년 4월 25일
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
Yu Li
Yu Li 2019년 4월 25일
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 2019년 4월 25일
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.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by