gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-24/Ex2418.m
%例24-18 设置视角 %Ex24-18 set the viewpoint clear close all subplot(2,2,1) ezmesh(@peaks); view(3); [a,b]=view;title(mat2str([a,b])) subplot(2,2,2) ezmesh(@peaks); view(2); [a,b]=view;title(mat2str([a,b])) subplot(2,2,3) ezmesh(@peaks); view([30 45]); [a,b]=view;title(mat2str([a,b])) subplot(2,2,4) ezmesh(@peaks); view([1 1 sqrt(2)]); [a,b]=view;title(mat2str([a,b]))