How to change camera view with respect to the current axes coordinate system
1 回表示 (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!