MATLAB: Setting Viewpoint with Azimuth, Elevation, and distance

viewpoint

Hello everyone. I have a problem need your help.
I would like to viewpoint from any position (phi=0:360, and theta=90:0), but the distance from centre to the viewpoint is exactly 100 cm.
I saw command view(az,el) but it is not included distance.
Do you have any solution for this problem. Thank in advance.

Best Answer

Hi Viet, in order to control visualization in the current axes, consider these parameters also:
CameraPosition
CameraPositionMode
CameraTarget
CameraTargetMode
CameraUpVector
CameraUpVectorMode
CameraViewAngle
CameraViewAngleMode
and set them to your needs. You can get the full list of available parameters of the current axes by typing gca in the command line.