set(gca, 'box', 'off')
Example
subplot(1,2,1)
plot([1,4,3,6,12,15],'.-')
title('Standard plot')
subplot(1,2,2)
title('Top and right axes removed')
http://www.mathworks.com/help/matlab/ref/axes-properties.html