필터 지우기
필터 지우기

Interpolation of time series of data at X and Y coordinates

조회 수: 2 (최근 30일)
Teja Reddy
Teja Reddy 2022년 11월 20일
댓글: Teja Reddy 2022년 11월 23일
Hi, I have a set of, X and Y coordinates, i have the time series of temperature data (not a single value) corresponding to these coordinates. I need to get the time series of temperatures at other required coordinates in the domain by interpolating the existing data. Could you please give some logic here? Thank you.

채택된 답변

Matt J
Matt J 2022년 11월 20일
Use scatteredInterpolant or griddedInterpolant depending on whether your (X,Y,t) data is scattered or gridded.
  댓글 수: 15
Matt J
Matt J 2022년 11월 23일
편집: Matt J 2022년 11월 23일
Why you considered only first column of Temperature while calculating "F" as shown below.?
It was just a way of intializing F. The v argument in scatteredInterpolant([x,y],v) needs to have the same number of rows as [x,y]. I could just as easily have done,
F=scatteredInterpolant([x,y],zeros(size(x)));
The program should consider all the data points corresponding to all coordinates to get the data at the query point.
What I've posted does compute the Temperature T(xq,yq,tq), where tq is a fixed time point, from all (x,y,tq). For each fixed (x,y) we've assumed that the temperatures are all sampled at the same set of times t. That being the case, we don't need to consider Temperatures at times other than tq to get T(xq,yq,tq).
Teja Reddy
Teja Reddy 2022년 11월 23일
Thank you Matt for your explanation.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by