필터 지우기
필터 지우기

Interpolation using interp3 with 2 arrays and one vector

조회 수: 2 (최근 30일)
Pragya Srivastava
Pragya Srivastava 2016년 1월 25일
댓글: Kelly Kearney 2016년 1월 25일
Hi, I want to interpolate from given input Vin(X,Y,t) to Vout(X,Y,t'), where X,Y are each two dimensional arrays and t is a vector. Using the interp3 command as
Vout(X,Y,i)=interp3(X,Y,t,Vin(:,:,1:end),X,Y,t'(i))
results in error "Grid coordinate arrays have inconsistent size". Can you suggest a way around this ?
Thanks !!
  댓글 수: 1
Kelly Kearney
Kelly Kearney 2016년 1월 25일
Do you want to do true 3D interpolation, or 1D interpolation over the third dimension? In other words, should the value at (x1,y1,t) depend on all 3-D neighbors, or just (x1,y1,tprev) and (x1,y1,tnext)?
Also, are your X and Y arrays on a regular grid? Formatted in meshgrid or ndgrid style?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by