Skip to content

rotate

Rotate a graphical object.

rotate(h, axis, angle, ...)

Rotates the graphical object referenced by h around the specified axis by angle degrees. Useful for interactive transformations of patches, surfaces, etc.

rotate(h, [0 0 1], 45) % rotate 45° around z
  • camorbit — Orbit the camera around the target.
  • view — Set or query the camera view angle.