画不出来图形?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 编辑 ] 是:mesh(x)
matlab区分大小写的
[ 本帖最后由 ChaChing 于 2010-4-4 20:27 编辑 ] X是一个size=200,500的一个矩阵,相当于z坐标值。我想知道它随x,y坐标的变化情况。 那应该是 mesh(x,y,X) 吧
[ 本帖最后由 ChaChing 于 2010-4-4 20:40 编辑 ] >> mesh(x,y,X);
??? Error using ==> surface
Matrix dimensions must agree.
可是维度不满足了呀! 剩下的这些是你自己的问题了,你要画图当然要调试好,三个矩阵的维数应该相同
[ 本帖最后由 ChaChing 于 2010-4-4 20:42 编辑 ] :@D 谢谢eight!我再试试吧 把X矩阵的表达式写出来看看
这句程序是什么意思?
Warning: Axis limits outside float precision, use ZBuffer or Painters instead. Not rendering.这句话是什么意思啊?ZBuffer or Painters 又是什么? 这个是 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帮助 :lol 谢谢!
页:
[1]