Mathematica中文论坛-非官方

标题: 生成一个matlab的logo [打印本页]

作者: meatball1982    时间: 2016-6-25 15:26
标题: 生成一个matlab的logo
  1. clear all
  2. clc


  3. %% outlinen
  4. % creat a matlab logo

  5. %% main
  6. L = 160*membrane(1,100);
  7. f = figure;
  8. ax = axes;

  9. s = surface(L);
  10. s.EdgeColor = 'none';
  11. view(3)

  12. ax.XLim = [1 201];
  13. ax.YLim = [1 201];
  14. ax.ZLim = [-53.4 160];

  15. ax.CameraPosition = [-145.5 -229.7 283.6];
  16. ax.CameraTarget = [77.4 60.2 63.9];
  17. ax.CameraUpVector = [0 0 1];
  18. ax.CameraViewAngle = 36.7;

  19. ax.Position = [0 0 1 1];
  20. ax.DataAspectRatio = [1 1 .9];

  21. l1 = light;
  22. l1.Position = [160 400 80];
  23. l1.Style = 'local';
  24. l1.Color = [0 0.8 0.8];

  25. l2 = light;
  26. l2.Position = [.5 -1 .4];
  27. l2.Color = [0.8 0.8 0];

  28. s.FaceColor = [0.9 0.2 0.2];

  29. s.FaceLighting = 'gouraud';
  30. s.AmbientStrength = 0.3;
  31. s.DiffuseStrength = 0.6;
  32. s.BackFaceLighting = 'lit';

  33. s.SpecularStrength = 1;
  34. s.SpecularColorReflectance = 1;
  35. s.SpecularExponent = 7;

  36. axis off
  37. f.Color = 'white';
复制代码


matlab_logo.jpg (52.41 KB, 下载次数: 862)

matlab_logo.jpg





欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/) Powered by Discuz! X3.2