从数学建模论坛上整理的MATLAB示例
中国数学建模-编程交流-【编程学习】matlab实用程序百例
wh-ee 重登录 隐身 用户控制面板 搜索 风格 论坛状态 论坛展区 社区服务 社区休闲 网站首页 退出
>> VC++,C,Perl,Asp...编程学习,算法介绍. 我的收件箱 (0)
中国数学建模 → 学术区 → 编程交流 → 【编程学习】matlab实用程序百例
您是本帖的第 2185 个阅读者
* 贴子主题:【编程学习】matlab实用程序百例
宝宝
头衔:不可不信缘
等级:贵宾
威望:3
文章:1116
积分:3459
门派:宝宝堂
注册:2003-7-8
第 31 楼
实例27:设置照明方式
function shili27
h0=figure('toolbar','none',...
'position',[200 150 450 350],...
'name','实例27');
subplot(2,2,1)
sphere
shading flat
camlight left
camlight right
lighting flat
colorbar
axis off
title('Figure1')
subplot(2,2,2)
sphere
shading flat
camlight left
camlight right
lighting gouraud
colorbar
axis off
title('Figure2')
subplot(2,2,3)
sphere
shading interp
camlight right
camlight left
lighting phong
colorbar
axis off
title('Figure3')
subplot(2,2,4)
sphere
shading flat
camlight left
camlight right
lighting none
colorbar
axis off
title('Figure4')
----------------------------------------------
为了大学生数学建模,我愿和你成为朋友吧!
一起努力,分享好东西!分享快乐!!
2004-6-1 9:52:25
宝宝
头衔:不可不信缘
等级:贵宾
威望:3
文章:1116
积分:3459
门派:宝宝堂
注册:2003-7-8
第 32 楼
实例28:羽状图
function shili28
h0=figure('toolbar','none',...
'position'
,[200 150 450 350],...
'name','实例28');
subplot(2,1,1)
alpha=90:-10:0;
r=ones(size(alpha));
m=alpha*pi/180;
n=r*10;
[u,v]=pol2cart(m,n);