24小时热门版块排行榜    

查看: 249  |  回复: 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的回帖

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的回帖

yujunhui

银虫 (著名写手)

呵呵
明白了!
谢谢你们!
安静
3楼2009-10-14 23:28:39
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 yujunhui 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 能否申诉? +4 echo8914667 2026-08-30 5/250 2026-08-30 21:11 by echo8914667
[基金申请] 为什么到现在没收到通知? +5 tannykie 2026-08-29 5/250 2026-08-30 21:05 by purplejack
[基金申请] 面上意见出来了 +9 黄鸟于飞Chao 2026-08-29 18/900 2026-08-30 16:47 by 黄鸟于飞Chao
[考博] 找导师 +6 yuanjiabao 2026-08-29 7/350 2026-08-30 14:40 by 生科新手
[基金申请] 29号明天会评吗 +3 笨笨唐 2026-08-28 3/150 2026-08-30 09:29 by cww8181
[基金申请] 麻烦专家们看看评委们的意见(F口面上) +6 gdd2018 2026-08-28 11/550 2026-08-30 08:58 by 超级无敌华子
[基金申请] 我就是申请一个面上项目而已,这评审意见是按照杰青的条件评的吧? +6 gouxfjh 2026-08-28 11/550 2026-08-30 07:57 by gouxfjh
[基金申请] 基金不中,共勉 +11 eulota 2026-08-26 11/550 2026-08-28 14:22 by 火星超人xi
[基金申请] 怎么查啊 +6 huang1991js 2026-08-26 6/300 2026-08-28 08:42 by winsaint
[基金申请] 哪位高人中了,把查询到的截图贴出来让我看看,让我长长见识 +5 yuleib84 2026-08-26 6/300 2026-08-28 00:02 by yudaoqian88
[基金申请] 面上合作单位盖章 +5 ssyjh 2026-08-27 5/250 2026-08-27 20:50 by gdfollow
[基金申请] 我不理解! +15 Edward_pc 2026-08-26 23/1150 2026-08-26 20:34 by zzuzxg
[基金申请] 2026年8月25日国自然放榜前突然收到列入评审专家邮件,有关系吗? +25 木水思豆 2026-08-25 28/1400 2026-08-26 14:53 by draco1987
[基金申请] 能否退出参与的面上项目解除限项 +23 koalala 2026-08-24 26/1300 2026-08-26 14:29 by 宝贝虫子
[基金申请] 为什么国自然不能直接公布 +4 bjdxyxy 2026-08-26 4/200 2026-08-26 13:12 by qingmu1201
[基金申请] 国际合作可查了,中了面上 (EPI+1)(金币+50) +18 Ldrop2023 2026-08-26 18/900 2026-08-26 11:15 by cmrandy
[基金申请] 国合可查了 +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[基金申请] 牛来!米来!面来! +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
[基金申请] 某些机构,以效率低为荣,以效率低作为存在感 +9 yuleib84 2026-08-25 10/500 2026-08-25 17:14 by alexon
[基金申请] 如果此刻你正在为国基感到焦虑,不妨来听听这首《基金之外》 +8 scalable 2026-08-24 8/400 2026-08-25 12:52 by jnhyjjm
信息提示
请填处理意见