h_axis = axes('position', [.3 .1 .65 .8]);
surf(peaks(35));

h_rotate = uicontrol('style','toggle', ...
    'string', 'Rotate3D', ...
    'callback', 'rotate_peaks_cb(''rotate'', gcf, h_rotate)', ...
    'fontsize', 12, 'units', 'normalized', 'position', [.05 .2 .2 .07]);
h_view = uicontrol('style','push', ...
    'string', 'Default View', ...
    'callback', 'rotate_peaks_cb(''view'',h_axis, h_view)', ...
    'fontsize', 12, 'units', 'normalized', 'position', [.05 .3 .2 .07]);