Rotate a 3d model in a gimbal frame for visualizing animal orientation.


rot_3d_model(F,prh) % Matlab & Octave

Rotate a 3d model in a gimbal frame for visualizing animal orientation.

Input var Description Default value
F is a structure containing plot handles from a previous call to plot_3dmodel. N/A
prh is a vector or matrix of pitch, roll and heading angles in radians, N/A
speed (optional) is the animation speed, very roughly in Hz (although this depends on how quickly the figure can be updated by the program). 20
Output var Description Units
F is a structure containing handles to the components of the display which can then be manipulated using rot_3d_model N/A
  • prh = [pitch,roll,heading]. Each row of prh defines a separate orientation and these are played in sequence. For a single orientation, prh should be a 3-element row vector.
  • The 3d model must be first created in the current figure using plot_3dmodel.

Matlab & Octave

F=plot_3d_model;
rot_3d_model(F,linspace(0,2*pi,100)'*[0 1 0]) ;

bugs@animaltags.org Last modified: 10 May 2017

  • tagwiki/tools/plotting/rot_3d_model.txt
  • Last modified: 2017/07/24 20:56
  • by 153.106.54.148