No BSD License  

Highlights from
Numerical Methods for Physics

from Numerical Methods for Physics by Alejandro Garcia
Companion Software

spinview(nviews,wait)
function spinview(nviews,wait)
% spinview - Routine to rotate a 3D plot
% Inputs
%    nviews - Number of views
%    wait   - Seconds to pause between views
[az,el] = view;
angle = 360/nviews;
for i=1:nviews
  view([angle*i+az el]);
  pause(wait);
end

Contact us at files@mathworks.com