Mathematica中文论坛-非官方

标题: 豆粑粑 fsurf画参数方程 [打印本页]

作者: meatball1982    时间: 2018-10-10 09:04
标题: 豆粑粑 fsurf画参数方程
看别人的帖子,一个fsurf函数,可以画参数方程。
虽然mathematica早就有了,但matlab好像是2016之后才有的。


  1. r = @(u,v) 2 + sin(7.*u + 5.*v);
  2. funx = @(u,v) r(u,v).*cos(u).*sin(v);
  3. funy = @(u,v) r(u,v).*sin(u).*sin(v);
  4. funz = @(u,v) r(u,v).*cos(v);
  5. fsurf(funx,funy,funz,[0 2*pi 0 pi],'edgecolor','none')
  6. camlight
  7. colormap(jet)
  8. axis equal
复制代码


fig_fsurf.png (288.89 KB, 下载次数: 1858)

fig_fsurf.png





欢迎光临 Mathematica中文论坛-非官方 (http://www.ilovemathematica.com/) Powered by Discuz! X3.2