Mathematica中文论坛-非官方

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 6522|回复: 0
打印 上一主题 下一主题

生成一个matlab的logo

[复制链接]

532

主题

602

帖子

3031

积分

论坛元老

Rank: 8Rank: 8

积分
3031
跳转到指定楼层
楼主
发表于 2016-6-25 15:26:07 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
  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, 下载次数: 764)

matlab_logo.jpg
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|Mathematica中文论坛-非官方 ( 辽ICP备16001491号-1

GMT+8, 2024-4-29 02:38 , Processed in 0.123240 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表