7十一/101
MATLAB版图像:让我们手拉手,心连心,我们都是二附中人
今天在人人网上看到母校的一个学弟,用图形计算器画了一幅图:

好心的学弟给出了画这幅图所需要的23个函数解析式。我用matlab画了一下。
下面是代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ezplot('0.15*x^2+1.5',[-2,2]) hold on ezplot('-x^2-1') ezplot('(y-3)^2+x^2-0.5') ezplot('(y-2.75)^2+(x-4)^2-0.5') ezplot('(y-2.75)^2+(x+4)^2-0.5') ezplot('t','1.05',[-0.4,0.4]) ezplot('-0.2*(t^2-1)-1','t',[-2,2]) ezplot('0.2*(t^2-1)+1','t',[-2,2]) ezplot('t','0.35',[-0.4,0.3]) ezplot('-5/x-0.2',[-5.2,-2]) ezplot('3/(x+3)+2.2',[-5,-3]) ezplot('0.15*y^2-2.65','y',[-5,2]) ezplot('-0.4','t',[-0.45,1.05]) ezplot('5/x-0.2',[2,5.2]) ezplot('3/(3-x)+2.2',[3,5]) ezplot('-0.15*y^2+2.65','y',[-5,2]) ezplot('x','-0.7',[-3.8,-3]) ezplot('x','0.7',[-3.8,-3]) ezplot('x','0',[-3.8,-3]) ezplot('-3.8','y',[-0.7,0.7]) ezplot('x','0.7',[3,3.8]) ezplot('x','-0.7',[3,3.8]) ezplot('1.75*x-5.95',[3,3.8]) axis([-6 6 -2 6]) set(findobj('Type','line'),'Color','k','LineWidth',5) title('') xlabel('') ylabel('') |
原创文章,转载请注明: 转载自ELLY66
本文链接地址: MATLAB版图像:让我们手拉手,心连心,我们都是二附中人
文章的脚注信息由WordPress的wp-posturl插件自动生成
Evernote lets you save all the interesting things you see online into a single place. Access all those saved pages from your computer, phone or the web. Sign up now or learn more. It's free!
2010年12月04日 17:05
从豆瓣来的~~