- function shili27
- h0=figure('toolbar','none',...
- 'position',[200 150 450 350],...
- 'name','实例27');
- subplot(2,2,1)
- sphere
- shading flat
- camlight left
- camlight right
- lighting flat
- colorbar
- axis off
- title('Figure1')
- subplot(2,2,2)
- sphere
- shading flat
- camlight left
- camlight right
- lighting gouraud
- colorbar
- axis off
- title('Figure2')
- subplot(2,2,3)
- sphere
- shading interp
- camlight right
- camlight left
- lighting phong
- colorbar
- axis off
- title('Figure3')
- subplot(2,2,4)
- sphere
- shading flat
- camlight left
- camlight right
- lighting none
- colorbar
- axis off
- title('Figure4')
- 实例28:羽状图
- function shili28
- h0=figure('toolbar','none',...
- 'position',[200 150 450 350],...
- 'name','实例28');
- subplot(2,1,1)
- alpha=90:-10:0;
- r=ones(size(alpha));
- m=alpha*pi/180;
- n=r*10;
- [u,v]=pol2cart(m,n);
- feather(u,v)
- title('羽状图')
- axis([0 20 0 10])
- subplot(2,1,2)
- t=0:0.5:10;
- x=0.05+i;
- y=exp(-x*t);
- feather(y)
- title('复数矩阵的羽状图')
|