matlab的logo是什么意思,求Matlab Logo的例子程序每句解读(程序如下)

问题描述:

求Matlab Logo的例子程序每句解读(程序如下)

L = 40*membrane(1,25);

set(gcf,'Color',[0 0 0]);\x05\x05\x05%设置颜色

axes('CameraPosition',[-193.4013 -265.1546 220.4819],...

'CameraTarget',[26 26 10],...

'CameraUpVector',[0 0 1],...

'CameraViewAngle',9.5,...

'DataAspectRatio',[1 1 .9],...

'Position',[0 0 1 1],...

'Visible','off',...

'XLim',[1 51],...

'YLim',[1 51],...

'ZLim',[-13 40]);

s = surface(L,...

'EdgeColor','none',...

'FaceColor',[0.9 0.2 0.2],...

'FaceLighting','phong',...

'AmbientStrength',0.3,...

'DiffuseStrength',0.6,...

'Clipping','off',...

'BackFaceLighting','lit',...

'SpecularStrength',1.1,...

'SpecularColorReflectance',1,...

'SpecularExponent',7);

l1 = light('Position',[40 100 20],...

'Style','local',...

'Color',[0 0.8 0.8]);

l2 = light('Position',[.5 -1 .4],...

'Color',[0.8 0.8 0]);

1个回答

分类:

综合

2014-12-08

问题解答:

我来补答

L = 40*membrane(1,25); % 你自定义函数.

set(gcf,'Color',[0 0 0]);\x09\x09\x09%设置颜色

axes('CameraPosition', [-193.4013 -265.1546 220.4819],...

'CameraTarget',[26 26 10], ...

'CameraUpVector',[0 0 1], ...

'CameraViewAngle',9.5, ...

'DataAspectRatio', [1 1 .9],...

'Position',[0 0 1 1], ...

'Visible','off', ...

'XLim',[1 51], ...

'YLim',[1 51], ...

'ZLim',[-13 40]); % 一直到这里是一句话,设置坐标轴属性.

s = surface(L, ...

'EdgeColor','none', ...

'FaceColor',[0.9 0.2 0.2], ...

'FaceLighting','phong', ...

'AmbientStrength',0.3, ...

'DiffuseStrength',0.6, ...

'Clipping','off',...

'BackFaceLighting','lit', ...

'SpecularStrength',1.1, ...

'SpecularColorReflectance',1, ...

'SpecularExponent',7); % 设置画图属性

l1 = light('Position',[40 100 20], ...

'Style','local', ...

'Color',[0 0.8 0.8]); % 添加一个灯光

l2 = light('Position',[.5 -1 .4], ...

'Color',[0.8 0.8 0]);% 添加另外一个灯光

可以私下联系,QQ

再问: 你好,感谢你的回答, 在这个程序里面例如:CameraPosition', [-193.4013 -265.1546 220.4819],... 'CameraTarget',[26 26 10], ... 'CameraUpVector',[0 0 1], ... 这些都是什么意思啊? matlab指令表里都没有啊

再答: 这个是设置它的属性的。在matlab 帮助里面有的哦。摄像机位置,表示从哪个角度看。

摄像机的目标点,表示往哪里看。和上面的变量一起决定视角。

定义摄像机上方,例如:[0,1,0] 表示y轴正方向为摄像机上方。

展开全文阅读

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值