24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 223  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 315求调剂 +12 小羊小羊_ 2026-04-02 12/600 2026-04-03 18:22 by ls刘帅
[考研] 298求调剂 +9 种圣赐 2026-03-29 9/450 2026-04-03 17:52 by Jimmyandyou
[考研] 本科985,专业0812分336求调剂 +3 莫莫很行 2026-04-03 3/150 2026-04-03 17:01 by 1962910217
[考研] 一志愿江南大学085501机械工程专硕326分,本科佳木斯大学 +3 顾若浮生 2026-04-03 7/350 2026-04-03 15:03 by 顾若浮生
[考研] 一志愿北京工业大学,324分求调剂 +8 零八# 2026-03-28 8/400 2026-04-03 14:15 by 百灵童888
[考研] 本科新能源科学与工程,一志愿华理能动285求调剂 +9 AZMK 2026-03-28 13/650 2026-04-03 11:18 by qqq850810
[考研] 材料调剂 +7 一样YWY 2026-04-02 7/350 2026-04-02 21:49 by dongzh2009
[考研] 材料专硕322分 +10 哈哈哈吼吼吼哈 2026-04-02 10/500 2026-04-02 21:46 by dongzh2009
[考研] 264分,求任意工科调剂 +4 zzlqwq 2026-03-29 5/250 2026-04-02 17:17 by 何曾几何
[考研] 318求调剂,计算材料方向 +10 吸喵有害笙命 2026-04-01 11/550 2026-04-02 16:29 by oooqiao
[考研] 321求调剂 一志愿 浙江工业大学生物医药 +5 嘿嘿HC 2026-04-01 6/300 2026-04-02 15:23 by sophie2180
[考研] 一志愿郑大材料工程290求调剂 +20 Youth_ 2026-03-30 20/1000 2026-04-02 14:48 by 5896
[考研] 找调剂 +6 楚乔乔 2026-04-01 6/300 2026-04-02 12:06 by xiaoranmu
[考研] 337求调剂 +11 《树》 2026-03-29 11/550 2026-04-02 10:20 by 不吃魚的貓
[考研] 土木304求调剂 +6 兔突突突, 2026-03-31 7/350 2026-04-02 09:06 by coolminer
[考研] 08工科275求调剂,可跨考。 +5 AaAa7420 2026-03-31 5/250 2026-04-01 15:21 by 159357hjz
[考研] 化学0703 调剂 306分 一志愿211 +12 26要上岸 2026-03-28 12/600 2026-04-01 11:10 by chemdavid
[考研] 一志愿华南师范361分,化学求调剂 +4 Nicole88888 2026-04-01 4/200 2026-04-01 10:08 by 唐沐儿
[考博] 材料专业申博 +5 杜雨婷dyt 2026-03-29 5/250 2026-03-31 11:19 by oooqiao
[考研] 285求调剂 +6 AZMK 2026-03-29 9/450 2026-03-30 21:02 by dophin1985
信息提示
请填处理意见