How to use interpolation?
5 ビュー (過去 30 日間)
古いコメントを表示
I have longitude, latitude, the veolocity of sea surface and a buoy velocity
I want to know the relationship between sea surface velocity and buoy velocity
so i want to interpolate the velocity of sea surface using interp2
in this case how do i make the function?
2 件のコメント
回答 (1 件)
KSSV
2022 年 11 月 6 日
Let lon,lat,U be your 2D data, and x,y,u be your buoy data.
Ui = interp2(lon,lat,U,x,y) ;
If your data is #d (I hope it is), then run loop for each time step.
Other option is; get the index of nearest neightbour of (x,y) in (lon,lat) and extract U for this index.
3 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!