声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2456|回复: 6

[编程技巧] [求助] 怎样画一个柱面?

[复制链接]
发表于 2006-3-10 22:41 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
请教:已知一个隐函数F(x, y )=0,要画它在三维空间的柱面,怎么画啊?<BR><BR> 谢谢大家指教!!
回复
分享到:

使用道具 举报

发表于 2006-3-11 11:22 | 显示全部楼层
  f=inline('x^2+y^2-1');<BR>  fvector=vectorize(f);<BR>  x=linspace(-1,1);<BR>  y=x;<BR>  z=x;<BR>  [xm,ym,zm]=meshgrid(x,y,z);<BR>  fvalues=feval(fvector,xm,ym);<BR>  isosurface(xm,ym,zm,fvalues,0);<BR>我记得好像有个画柱面的函数,忘记了,你自己google一下吧
 楼主| 发表于 2006-3-13 18:23 | 显示全部楼层
<P>谢谢yqchenlolo, 有个画旋转曲面的命令cylinder,<BR>isosurface(xm,ym,zm,fvalues,0) 中,最后一个零表示什么?<BR>看了帮助文件没看明白。  <BR><BR></P>
发表于 2006-3-14 09:06 | 显示全部楼层

回复:(roll66)[求助] 怎样画一个柱面?

In a contour plot, the contour value determines where you're "slicing" your<BR>surface -- if your contour value is 2 then you're taking a look at the set<BR>of x and y values where f(x, y) = 2 [where z = f(x, y)]. An isosurface is<BR>just a contour plot but with one higher dimension, and the isovalue is the<BR>contour value for the isosurface. So if your isovalue is 3, and the<BR>hypersurface for which you're computing the isosurface is v = f(x, y, z),<BR>the isosurface is the set of x, y, and z values for which f(x, y, z) = 3.<BR>
发表于 2006-3-14 09:31 | 显示全部楼层

回复:(roll66)谢谢yqchenlolo, 有个画旋转曲面的命...

<DIV class=quote><B>以下是引用<I>roll66</I>在2006-3-13 18:23:47的发言:</B><BR>
<P>谢谢yqchenlolo, 有个画旋转曲面的命令cylinder,<BR>isosurface(xm,ym,zm,fvalues,0) 中,最后一个零表示什么?<BR>看了帮助文件没看明白。  <BR><BR></P></DIV>
<P>isosurface(xm,ym,zm,fvalues,d)这里表示画f(x,y)=d的柱面</P>
发表于 2008-6-11 20:34 | 显示全部楼层
请问怎么画F(x,y,z)=0的三维图呢?:@)
发表于 2008-6-11 20:52 | 显示全部楼层
ezplot3
ezmesh
ezmeshc
ezsurf
ezsurfc

评分

1

查看全部评分

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-23 07:26 , Processed in 0.066599 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表