24小时热门版块排行榜    

CyRhmU.jpeg
查看: 200  |  回复: 2
当前主题已经存档。
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

yujunhui

银虫 (著名写手)

[交流] 【求助】surf 函数应用时候出现问题

t22 = [14.2108   14.6254   14.6373   14.6603   14.8070   15.2006   15.2092   15.4628  15.4806   15.5218   15.6294   15.6337   15.7272   15.7344   15.7489   15.7543  15.8346   15.8556   15.8776   15.9107   15.9221   15.9410   16.0229   16.1284  16.1450   16.1581   16.2808   16.3309   16.3447   16.3655   16.3682   16.4095  16.4259   16.4324   16.4823   16.5610   16.5622 ];
Cr2 = [ 16.8400   16.9540   17.0100   17.0320   17.0420   17.0920   17.1320   17.1400  17.1960   17.2160   17.2840   17.2860   17.3160   17.3240   17.3560   17.3780  17.3840   17.4000   17.4260   17.4280   17.4420   17.4580   17.4660   17.4700  17.5100   17.5180   17.5180   17.5220   17.5360   17.5560   17.5820   17.6100  17.6120   17.6340   17.6520   17.6640   17.6660 ];
r2 = [  10.4775   13.6780   14.1200   14.4880   14.5615   14.6455   15.2470   16.1830  16.5340   17.2380   17.7865   17.8885   18.7470   19.0950   19.0975   19.3450  19.7785   20.1340   20.1495   20.3760   20.8410   20.9260   20.9365   21.3595  23.1790   23.3240   23.7875   24.1855   25.0160   25.7555   26.1545   26.4890  27.2200   27.6805   27.9540   28.2315   29.6080 ];
E2 = [  20.0000   23.5000   28.5000   30.2500   30.5000   30.5000   31.7500   32.2500  33.0000   34.7500   35.5000   35.7500   36.0000   37.7500   38.0000   38.0000  39.0000   39.2500   39.5000   40.5000   41.5000   42.5000   43.0000   44.0000   44.5000   46.0000   46.5000   46.5000   46.7500   46.7500   47.0000   47.2500  48.2500   51.0000   51.7500   55.7500   62.5000 ];
T2 =  1.0e+003 *[ 1.5240    1.5275    1.5325    1.5342    1.5345    1.5345    1.5357    1.5362   1.5370    1.5388    1.5395    1.5398    1.5400    1.5418    1.5420    1.5420  1.5430    1.5433    1.5435    1.5445    1.5455    1.5465    1.5470    1.5480  1.5485    1.5500    1.5505    1.5505    1.5508    1.5508    1.5510    1.5513   1.5522    1.5550    1.5558    1.5598    1.5665 ];

surf(Cr2,r2,t22);
surf(E2,T2,t22);
Warning: Matrix dimensions must agree, not rendering mesh.
Warning: Matrix dimensions must agree, not rendering mesh.
Warning: Matrix dimensions must agree, not rendering mesh.

运行surf函数的时候出现这个错误,请指点?

如何画出 Cr2,r2,t22 三者之间的关系图
谢谢了!

[ Last edited by yujunhui on 2009-10-11 at 21:13 ]
回复此楼

» 猜你喜欢

安静
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yujunhui

银虫 (著名写手)

呵呵
明白了!
谢谢你们!
安静
3楼2009-10-14 23:28:39
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 3 个回答

buffalo7239

至尊木虫 (著名写手)

★ ★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
sunxiao(金币+2,VIP+0):谢谢参与,欢迎常来 10-15 04:58
兄弟,看下surf的帮助,你的少一个参数。你里边的三个参数仅生成三维坐标,没有高度值。
help surf
SURF   3-D colored surface.
    SURF(X,Y,Z,C) plots the colored parametric surface defined by
    four matrix arguments.  The view point is specified by VIEW.
    The axis labels are determined by the range of X, Y and Z,
    or by the current setting of AXIS.  The color scaling is determined
    by the range of C, or by the current setting of CAXIS.  The scaled
    color values are used as indices into the current COLORMAP.
    The shading model is set by SHADING.

    SURF(X,Y,Z) uses C = Z, so color is proportional to surface height.

    SURF(x,y,Z) and SURF(x,y,Z,C), with two vector arguments replacing
    the first two matrix arguments, must have length(x) = n and
    length(y) = m where [m,n] = size(Z).  In this case, the vertices
    of the surface patches are the triples (x(j), y(i), Z(i,j)).
    Note that x corresponds to the columns of Z and y corresponds to
    the rows.

    SURF(Z) and SURF(Z,C) use x = 1:n and y = 1:m.  In this case,
    the height, Z, is a single-valued function, defined over a
    geometrically rectangular grid.

    SURF(...,'PropertyName',PropertyValue,...) sets the value of the
    specified surface property.  Multiple property values can be set
    with a single statement.

    SURF(AX,...) plots into AX instead of GCA.
2楼2009-10-11 21:07:42
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复(可上传附件)
信息提示
请填处理意见