Effacer les filtres
Effacer les filtres

How to set the 3D rotation of a matlab graph using code

146 vues (au cours des 30 derniers jours)
Craig
Craig le 25 Fév 2015
Modifié(e) : Stephen23 le 25 Fév 2015
I can set axis properties with functions such as set. eg.
set(gca, 'XLim', [-1.5 1.5], 'YLim', [0 4.0], 'ZLim', [-1.0 2.0]);
But can I set the 3D rotation of the graph?
I would like the 3D graph to show the view where you are looking parallel down the x axis, so you can only see the z,y plane. i.e - so it justs looks like a 2D graph.
I cant just use a normal 2D graph because I am using the skeleton_viewer simulink block from the kinect simulink support package. I am trying to modify the skeleton_viewer.m file so that the default view is just of the z,y plane.

Réponses (1)

Stephen23
Stephen23 le 25 Fév 2015
Modifié(e) : Stephen23 le 25 Fév 2015
You have two main choices:
  • by setting axes properties: have a look under the section entitled "View".
  • by calling view function, which provides basic control over the azimuth and elevation of the viewpoint.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by