声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2702|回复: 5

[Maple] maple绘制三维图形

[复制链接]
发表于 2007-4-11 09:49 | 显示全部楼层 |阅读模式

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

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

x
maple绘制三维图形,怎么控制z(x,y)的z的显示范围
plot3d(z(x,y),x=0..10,y=-5..5);
z怎么控制,只能默认嘛?

[ 本帖最后由 suffer 于 2007-4-12 20:39 编辑 ]
回复
分享到:

使用道具 举报

发表于 2007-4-11 09:53 | 显示全部楼层
原帖由 dc1hawk 于 2007-4-11 09:49 发表
maple绘制三维图形,怎么控制z(x,y)的z的显示范围
plot3d(z(x,y),x=0..10,y=-5..5);
z怎么控制,只能默认嘛?



help xlim
 楼主| 发表于 2007-4-11 14:02 | 显示全部楼层
原帖由 eight 于 2007-4-11 09:53 发表



help xlim

maple 中没有这个帮助啊
发表于 2007-4-11 15:33 | 显示全部楼层
原帖由 dc1hawk 于 2007-4-11 14:02 发表

maple 中没有这个帮助啊


看得太快,以为你问的是matlab,呵呵。maple的话不懂
 楼主| 发表于 2007-4-11 16:16 | 显示全部楼层
不过还是很感谢楼上
发表于 2007-4-12 20:54 | 显示全部楼层
plot3d(f(x,y), x=xmin .. xmax, y=ymin .. ymax);
plot3d({f(x,y), g(x,y), …}, x=xmin .. xmax, y=ymin .. ymax);
plot3d(f(x,y), x=xmin .. xmax, y=ymin .. ymax, options);
其中,xmin..xmax为x的变化范围,ymin..ymax为y(即f(x))的变化范围. Option选项参数与二维时的情形相似,这里只列示新增指令的意义:
cotours:设定等高线的数目或者等高线的值
grid:设定组成曲面的样点数或方形网格的数量
gridstyle:设定网格的形状(rectangular—矩形,triangular—三角形)
orientation:设定观看图形的视角(但设定视角的最佳方式是用鼠标拖动图形)
projection:设定投影的模式
shading:设定曲面着色的方式
  与二维情形相同,在Maple中三维绘图坐标系的选定使用命令coords,缺省坐标系为笛卡尔坐标系(cartesian),此外还有: bipolarcylindrical(双极坐标), bispherical(双球面坐标), cardioidal(心脏线坐标), cardioidcylindrical(心形柱坐标), casscylindrical(   ), confocalellip(共焦椭球坐标), confocalparab(共焦抛物线坐标), conical(锥形坐标), cylindrical(柱坐标), ellcylindrical(椭柱坐标), ellipsoidal(椭球坐标), hypercylindrical (超圆柱坐标), invcasscylindrical, invellcylindrical(逆椭球坐标), invoblspheroidal(  ), invprospheroidal(  ), logcoshcylindrical(双数双曲余弦柱坐标), logcylindrical(对数柱坐标), maxwellcylindrical(麦克斯韦柱坐标), oblatespheroidal(  ), paraboloidal(抛物面坐标), paracylindrical(参数柱坐标), prolatespheroidal(扁类球坐标), rosecylindrical(玫瑰形柱坐标), sixsphere(六球坐标), spherical(球坐标), tangentcylindrical(正切柱坐标), tangentsphere(正切球坐标)和toroidal(圆环面坐标).
> plot3d(x*y^2/(x^2+y^4),x=-1..1,y=-1..1,axes=boxed);

> plot3d(x*y/(x^2+y^2+2*x*y),x=-4..4,y=-4..4, axes=BOXED);

> plot3d(sin(x*y),x=-Pi..Pi,y=-Pi..Pi);

> plot3d({2*sin(x)*cos(y),-6*x/(x^2+y^2+1)},x=-4..4,y=-4..4);

> plot3d(sin(z/2), t=0..3*Pi/2, z=-4..4, coords=spherical);

> plot3d(1,t=0..2*Pi,p=0..Pi, coords=spherical, scaling=constrained);

> plot3d(sin(t)*sin(p^2), t=0..Pi, p=0..Pi, coords=spherical, grid=[35,35]);

> plot3d(theta,theta=0..8*Pi,phi=0..Pi, coords=spherical, style=wireframe);

> plot3d(theta,theta=0..8*Pi,phi=0..Pi, coords=toroidal(2), style=wireframe);

> plot3d(theta,theta=0..8*Pi,z=-1..1, coords=cylindrical, style=patch):
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-5-19 10:03 , Processed in 0.051008 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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