Convert X,Y,Z column data into equally spacing grid of X,Y and corresponding Z

5 次查看(过去 30 天)
have column vector X=m*1; Y=m*1; Z=m*1; (with NaN in between)
Want to convert Z data into regular spacing of X and Y; X ( -90 to 90) and Y(-180 to 180) irrespective of range of the column vectors X and Y.
Kindly help! Thanks!
  5 个评论

请先登录,再进行评论。

采纳的回答

KSSV
KSSV 2018-10-12
编辑:KSSV 2022-3-11
Let X,Y,Z be your data.
N = 500 ;
xi = linspace(min(X),max(X),N) ;
yi = linspace(min(Y),max(Y),N) ;
[Xi,Yi] = meshgrid(xi,yi) ;
Zi = griddata(X,Y,Z,Xi,Yi) ;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by