suffer 发表于 2006-11-15 15:36

MATLAB进入时显示的图标的程序实现,有动画效果

%LOGO   Plot the L-shaped membrane logo with MATLAB 5 lighting.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 5.12 $$Date: 1998/09/29 16:15:48 $

if exist('GalleryGUIFlag'), close(figNumber), end;

infoStr = str2mat(' ', ...
    ' This is the MathWorks logo, the fundamental mode', ...
    ' for wave propogation on an L-shaped domain.', ...
    ' ', ...
    ' File name: logo.m');

% gallinit(figNumber,infoStr)
figure('Color',);
%for ik=
for ik=(0:0.25:5).^2
L = ik*membrane(1,25);
cla
axes('Color',);
axes('CameraPosition', [-193.4013 -265.1546220.4819],...
    'CameraTarget',, ...
    'CameraUpVector',, ...
    'CameraViewAngle',9.5, ...
    'DataAspectRatio', ,...
    'Position',, ...
    'Visible','off', ...
    'XLim',, ...
    'YLim',, ...
    'ZLim',[-13 40]);
s = surface(L, ...
    'EdgeColor','none', ...
    'FaceColor',, ...
    'FaceLighting','phong', ...
    'AmbientStrength',0.3, ...
    'DiffuseStrength',0.6, ...
    'Clipping','off',...
    'BackFaceLighting','lit', ...
    'SpecularStrength',1.1, ...
    'SpecularColorReflectance',1, ...
    'SpecularExponent',7);
l1 = light('Position',, ...
    'Style','local', ...
    'Color',);
l2 = light('Position',[.5 -1 .4], ...
   'Color',);
pause(0.02)
end
页: [1]
查看完整版本: MATLAB进入时显示的图标的程序实现,有动画效果