Data interpolation from array

1 Ansicht (letzte 30 Tage)
Sarah Yun
Sarah Yun am 17 Jan. 2020
Kommentiert: Image Analyst am 18 Jan. 2020
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,

Antworten (1)

Image Analyst
Image Analyst am 17 Jan. 2020
Bearbeitet: Image Analyst am 17 Jan. 2020
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 Kommentare
Sarah Yun
Sarah Yun am 17 Jan. 2020
Bearbeitet: Sarah Yun am 17 Jan. 2020
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.
Image Analyst
Image Analyst am 18 Jan. 2020
Maybe I don't understand. If you have the snowfall in an array, why not simply use imresize()???
snowfall2 = imresize(snowfall1, [2984, 6033]);

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by