function nice3dn
% make 3d plots nicer by 
%   using perspective 
%   showing bounding box
%   showing grid
%   allow rotation by mouse dragging
%
% use nice3d if you want to make axis units equal

xlabel('x'); ylabel('y'); zlabel('z')
camproj('perspective')    % undo by   camproj('orthographic')
box on                    % undo by   box off
axis normal
axis tight                %
grid on                   % undo by   grid off

axis vis3d

%rotate3d on
cameratoolbar('SetMode','orbit');


