|登录 |注册

查看: 5334|回复: 17
打印 上一主题 下一主题

[其他] 【转】數學的魅力 乳房 18SX

[复制链接]
★蓝羽★
2012-12-8 10:55 PM
本帖最后由 ★蓝羽★ 于 2012-12-9 02:14 PM 编辑

乳房輪廓線



三維單乳



三維雙乳



相應的matlab代碼如下﹕

% 乳房輪廓線
fun = @(x,a,b)a.*x.*log10(x)-(1/b).*exp(-((b.*x-b./exp(1)).^4));
x = 0:0.01:1;
y1 = fun(x,3,30);
y2 = fun(x,2.5,36);
y3 = fun(x,2,50);
figure;
plot(y1,x,'k');
hold on
plot(y2,x,'r');
plot(y3,x);
text('Interpreter','latex',...
'String',['$$f(x) = 3xlog_{10}x-\frac{1}{30}e^{-(30x-\frac{30}'...
    '{e})^4}$$'],'Position',[-1.1,0.85],...
'FontSize',18,'color','k');
text('Interpreter','latex',...
'String',['$$g(x) = 2.5xlog_{10}x-\frac{1}{36}e^{-(36x-\frac{36}'...
    '{e})^4}$$'],'Position',[-1.1,0.6],...
'FontSize',18,'color','r');
text('Interpreter','latex',...
'String',['$$h(x) = 2xlog_{10}x-\frac{1}{50}e^{-(50x-\frac{50}'...
    '{e})^4}$$'],'Position',[-1.1,0.35],...
'FontSize',18,'color','b');
axis equal;
axis([-1.2,0,0,1])

% 單乳房曲面(三維)
[X, Y] = meshgrid(0.01:0.01:1, 0.01:0.01:1);
Z = 11*X.*log10(X).*Y.*(Y-1)+exp(-((25 ...
            *X - 25/exp(1)).^2+(25*Y-25/2).^2).^3)./25;
figure;
surf(Y,Z,X,'FaceColor',[1 0.75 0.65],'linestyle','none');
view([116 30]);
axis equal;
camlight;
lighting phong;  % 設置光照和光照模式
title(['$$F(x,y) = 12.5x(log_{10}x)y(y-1)-\frac{1}{25}'...
    'e^{-[(25x-25/e)^2+(25y-12.5)^2]^3}$$'],...
    'Interpreter','latex','FontSize',18,'color','k');

% 雙乳房曲面(三維)
[X, Y] = meshgrid(0.01:0.01:1, 0.01:0.01:1);
Zfun =@(x,y)12.5*x.*log10(x).*y.*(y-1)+exp(-((25 ...
            *x - 25/exp(1)).^2+(25*y-25/2).^2).^3)./25;
Z = Zfun(X,Y);
figure;
surf(Y,Z,X,'FaceColor',[1 0.75 0.65],'linestyle','none');
hold on
surf(Y+0.98,Z,X,'FaceColor',[1 0.75 0.65],'linestyle','none');
axis equal;
view([116 30]);
camlight;
lighting phong;  % 設置光照和光照模式
yummykate
2012-12-8 11:00 PM
什么来的~没照片~
★蓝羽★
2012-12-8 11:05 PM
yummykate 发表于 2012-12-8 11:00 PM
什么来的~没照片~

有了~
BeHappy94
2012-12-8 11:31 PM
这是数学?有谁会做?
不能说的secret
2012-12-8 11:35 PM
哈哈,算是我蛮讨厌的一个 software,madlab 多过 matlab
Pet_Kingdom
2013-1-17 11:38 PM
好混乱~~
eddylow
2013-2-6 05:50 PM
真是搞难度的教学
happy_blue
2013-2-14 07:59 PM
哈哈。。没舍兴趣。。
提示: 作者被禁止或删除 内容自动屏蔽
m5967
2013-7-12 12:26 AM
令我想起一部漫画  pie 的原理
您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2025-10-7 10:18 PM , Processed in 0.113948 second(s), 21 queries .

Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.

本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved

Dedicated Server powered by iCore Technology Sdn. Bhd.

合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部