matlab--设置照明方式

[复制链接]
604|0
 楼主| cooldog123pp 发表于 2023-10-27 19:41 | 显示全部楼层 |阅读模式
  1. function shili27
  2. h0=figure('toolbar','none',...
  3.     'position',[200 150 450 350],...
  4.     'name','实例27');
  5. subplot(2,2,1)
  6. sphere
  7. shading flat
  8. camlight left
  9. camlight right
  10. lighting flat
  11. colorbar
  12. axis off
  13. title('Figure1')

  14. subplot(2,2,2)
  15. sphere
  16. shading flat
  17. camlight left
  18. camlight right
  19. lighting gouraud
  20. colorbar
  21. axis off
  22. title('Figure2')

  23. subplot(2,2,3)
  24. sphere
  25. shading interp
  26. camlight right
  27. camlight left
  28. lighting phong
  29. colorbar
  30. axis off
  31. title('Figure3')

  32. subplot(2,2,4)
  33. sphere
  34. shading flat
  35. camlight left
  36. camlight right
  37. lighting none
  38. colorbar
  39. axis off
  40. title('Figure4')
  41. 实例28:羽状图

  42. function shili28
  43. h0=figure('toolbar','none',...
  44.     'position',[200 150 450 350],...
  45.     'name','实例28');
  46. subplot(2,1,1)
  47. alpha=90:-10:0;
  48. r=ones(size(alpha));
  49. m=alpha*pi/180;
  50. n=r*10;
  51. [u,v]=pol2cart(m,n);
  52. feather(u,v)
  53. title('羽状图')
  54. axis([0 20 0 10])

  55. subplot(2,1,2)
  56. t=0:0.5:10;
  57. x=0.05+i;
  58. y=exp(-x*t);
  59. feather(y)
  60. title('复数矩阵的羽状图')


您需要登录后才可以回帖 登录 | 注册

本版积分规则

2304

主题

7629

帖子

31

粉丝
快速回复 在线客服 返回列表 返回顶部