声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 5969|回复: 10

[绘图技巧] 画不出来图形?ZBuffer 和Painters是什么东东?

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

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

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

x
为什么我用下面的程序,画不出来图形?ZBuffer 和Painters是什么东东?

[x,y]=meshgrid(-2e-4:1e-6:2e-4,0:1e-6:5e-4); mesh(X)
Warning: Axis limits outside float precision, use ZBuffer or Painters instead. Not rendering.
请各位大侠不吝赐教!

[ 本帖最后由 ChaChing 于 2010-4-4 20:37 编辑 ]
回复
分享到:

使用道具 举报

发表于 2007-4-23 15:44 | 显示全部楼层
是:mesh(x)

matlab区分大小写的

[ 本帖最后由 ChaChing 于 2010-4-4 20:27 编辑 ]
 楼主| 发表于 2007-4-23 15:57 | 显示全部楼层
X是一个size=200,500的一个矩阵,相当于z坐标值。我想知道它随x,y坐标的变化情况。
发表于 2007-4-23 16:00 | 显示全部楼层
那应该是 mesh(x,y,X) 吧

[ 本帖最后由 ChaChing 于 2010-4-4 20:40 编辑 ]

评分

1

查看全部评分

 楼主| 发表于 2007-4-23 16:09 | 显示全部楼层
>> mesh(x,y,X);
??? Error using ==> surface
Matrix dimensions must agree.

可是维度不满足了呀!
发表于 2007-4-23 16:50 | 显示全部楼层
剩下的这些是你自己的问题了,你要画图当然要调试好,三个矩阵的维数应该相同

[ 本帖最后由 ChaChing 于 2010-4-4 20:42 编辑 ]

评分

1

查看全部评分

 楼主| 发表于 2007-4-24 18:38 | 显示全部楼层
:@D 谢谢eight!我再试试吧
发表于 2007-4-24 19:12 | 显示全部楼层
把X矩阵的表达式写出来看看
 楼主| 发表于 2007-4-26 15:42 | 显示全部楼层

这句程序是什么意思?

Warning: Axis limits outside float precision, use ZBuffer or Painters instead. Not rendering.
这句话是什么意思啊?ZBuffer or Painters 又是什么?
发表于 2007-4-26 15:48 | 显示全部楼层
这个是 Figure 的属性之一:



Renderer                     painters | zbuffer | OpenGL

Rendering method used for screen and printing. This property enables you to select the method used to render MATLAB graphics. The choices are painters -- The original rendering method used by MATLAB is faster when the figure contains only simple or small graphics objects. zbuffer -- MATLAB draws graphics objects faster and more accurately because objects are colored on a per-pixel basis and MATLAB renders only those pixels that are visible in the scene (thus eliminating front-to-back sorting errors). Note that this method can consume a lot of system memory if MATLAB is displaying a complex scene. OpenGL -- OpenGL is a renderer that is available on many computer systems. This renderer is generally faster than painters or zbuffer and in some cases enables MATLAB to access graphics hardware that is available on some systems. Note that when the Renderer is set to opengl, MATLAB sets BackingStore to off.


这个是 Axes 的属性之一:


DrawMode                     {normal} | fast

Rendering mode. This property controls the way MATLAB renders graphics objects displayed in the axes when the figure Renderer property is painters. normal mode draws objects in back to front ordering based on the current view in order to handle hidden surface elimination and object intersections. fast mode draws objects in the order in which you specify the drawing commands, without considering the relationships of the objects in three dimensions. This results in faster rendering because it requires no sorting of objects according to location in the view, but can produce undesirable results because it bypasses the hidden surface elimination and object intersection handling provided by normal DrawMode.
When the figure Renderer is zbuffer, DrawMode is ignored, and hidden surface elimination and object intersection handling are always provided.


建议多使用matlab帮助
 楼主| 发表于 2007-4-26 16:03 | 显示全部楼层
:lol 谢谢!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-12-13 00:55 , Processed in 0.070139 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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