필터 지우기
필터 지우기

How to change camera view with respect to the current axes coordinate system

조회 수: 1 (최근 30일)
Amir
Amir 2012년 3월 31일
In 3D system I want the camera to look at x-y plane so that the camera optical axis is along the z axis and the principal point is (0,0). How can i do this?

답변 (1개)

Aaditya Kalsi
Aaditya Kalsi 2012년 4월 1일
When you have a plot on a figure, you may change your viewpoint quite easily.
% get the current viewpoint
viewPt = get(gca, 'CameraPosition')
% viewPt is a 3-element vector containing x, y, z location of the camera.
% set the camera at (0, 0, 10)
set(gca, 'CameraPosition', [0, 0, 10]);
Hope this helps.

카테고리

Help CenterFile Exchange에서 Camera Views에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by