필터 지우기
필터 지우기

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
Bhowmik.U
Bhowmik.U 2018년 10월 12일
made meshgrid of X and Y [LON LAT]=meshgrip(X,Y); got LON=m*m and LAT=m*m..then?

댓글을 달려면 로그인하십시오.

채택된 답변

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