huangxuemei513 发表于 2007-4-23 15:43

画不出来图形?ZBuffer 和Painters是什么东东?

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

=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 编辑 ]

eight 发表于 2007-4-23 15:44

是:mesh(x)

matlab区分大小写的

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

huangxuemei513 发表于 2007-4-23 15:57

X是一个size=200,500的一个矩阵,相当于z坐标值。我想知道它随x,y坐标的变化情况。

eight 发表于 2007-4-23 16:00

那应该是 mesh(x,y,X) 吧

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

huangxuemei513 发表于 2007-4-23 16:09

>> mesh(x,y,X);
??? Error using ==> surface
Matrix dimensions must agree.

可是维度不满足了呀!

eight 发表于 2007-4-23 16:50

剩下的这些是你自己的问题了,你要画图当然要调试好,三个矩阵的维数应该相同

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

huangxuemei513 发表于 2007-4-24 18:38

:@D 谢谢eight!我再试试吧

illyq 发表于 2007-4-24 19:12

把X矩阵的表达式写出来看看

huangxuemei513 发表于 2007-4-26 15:42

这句程序是什么意思?

Warning: Axis limits outside float precision, use ZBuffer or Painters instead. Not rendering.
这句话是什么意思啊?ZBuffer or Painters 又是什么?

eight 发表于 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帮助

huangxuemei513 发表于 2007-4-26 16:03

:lol 谢谢!
页: [1]
查看完整版本: 画不出来图形?ZBuffer 和Painters是什么东东?