| 4 | 1/1 | 返回列表 |
| 查看: 575 | 回復(fù): 3 | |||
[交流]
【求助】插值出錯(cuò)請指點(diǎn)?【已解決】 已有2人參與
|
|
想繪制出 qt ,tt 與ys 之間的三維圖 qt=[ 960 965 970 980 990 1000 1010 1020]; tt=[ 610 615 630 635 640 645 650 655]; ys=[ 843.0606 841.8215 776.3689 731.2429 699.4305 684.6386 679.0920 676.2462]; %考慮插值部分 qt=960 :0.5:1020; tt=610:0.5:670; [t2,s2]=meshgrid(qt,tt); ys1=interp2(qt,tt,ys,t2,s2,'cubic') 運(yùn)行上步驟 出現(xiàn)如下錯(cuò)誤 ??? Error using ==> interp2 X and Y must be same length as Z or the lengths of X and Y must match the size of Z. 請指點(diǎn)?? [ Last edited by nono2009 on 2010-6-11 at 15:11 ] |

鐵桿木蟲 (著名寫手)
方丈大師
| griddata |
鐵桿木蟲 (著名寫手)
方丈大師
|
>> qt=[ 960 965 970 980 990 1000 1010 1020]; >> tt=[ 610 615 630 635 640 645 650 655]; ys=[ 843.0606 841.8215 776.3689 731.2429 699.4305 684.6386 679.0920 676.2462]; >> qt1=960 :0.5:1020; >> tt1=610:0.5:670; >> [t2,s2]=meshgrid(qt1,tt1); >> ys2=griddata(qt,tt,ys,t2,s2,'v4'); >> surf(t2,s2,ys2) |

| 4 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|