Data interpolation from array

Hello,
I have 5 columns of normalised snow fall data (between 0 and 1). All 5 column are 9000 rows long.
I want to interpolate this data onto an array of 2984 rows and 6033 columns in size.
Should I use the scatteredInterpolant function to do this?
If so, please help.
Kind regards,

답변 (1개)

Image Analyst
Image Analyst 2020년 1월 17일
편집: Image Analyst 2020년 1월 17일

0 개 추천

Depends. What to the columns and rows represent?
I'd probably say just use interp1() for each column one at a time.
Attach your table if you need more help.

댓글 수: 4

Sarah Yun
Sarah Yun 2020년 1월 17일
편집: Image Analyst 2020년 1월 17일
The columns and rows are a DTM array.
I want to interpolate snow fall data onto the DTM array.
To show snow fall extent as a gradient across DTM extent.
Image Analyst
Image Analyst 2020년 1월 17일
What does DTM mean? Do you want to consider the table/matrix as an image and look at the gradient within each row (going across columns)?
Sarah Yun
Sarah Yun 2020년 1월 17일
편집: Sarah Yun 2020년 1월 17일
DTM means digital terrain model.
I want to interpolate the 5x9000 snowfall array onto the 2984x6033 DTM array.
What is easiest way to do it?
Thank you.
Maybe I don't understand. If you have the snowfall in an array, why not simply use imresize()???
snowfall2 = imresize(snowfall1, [2984, 6033]);

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

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

태그

질문:

2020년 1월 17일

댓글:

2020년 1월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by