meatball1982 发表于 2016-6-25 15:26:07

生成一个matlab的logo

clear all
clc


%% outlinen
% creat a matlab logo

%% main
L = 160*membrane(1,100);
f = figure;
ax = axes;

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

ax.XLim = ;
ax.YLim = ;
ax.ZLim = [-53.4 160];

ax.CameraPosition = [-145.5 -229.7 283.6];
ax.CameraTarget = ;
ax.CameraUpVector = ;
ax.CameraViewAngle = 36.7;

ax.Position = ;
ax.DataAspectRatio = ;

l1 = light;
l1.Position = ;
l1.Style = 'local';
l1.Color = ;

l2 = light;
l2.Position = [.5 -1 .4];
l2.Color = ;

s.FaceColor = ;

s.FaceLighting = 'gouraud';
s.AmbientStrength = 0.3;
s.DiffuseStrength = 0.6;
s.BackFaceLighting = 'lit';

s.SpecularStrength = 1;
s.SpecularColorReflectance = 1;
s.SpecularExponent = 7;

axis off
f.Color = 'white';

页: [1]
查看完整版本: 生成一个matlab的logo