No BSD License  

Highlights from
mrotate

from mrotate by T. Mervin
manually rotate a 3D object

test.m
clc;
clear all;

[x y z] = cylinder([1 1], 20);
h = surf(x,y,z);

c = [3 2 1];
v = [1 2 1];

mrotate(h,c,v,'v');
%mrotate(h,'off');

Contact us at files@mathworks.com