Interpolation between 2 data sets acquired at same grids
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
maryam al labbad
am 12 Feb. 2021
Kommentiert: maryam al labbad
am 14 Feb. 2021
Hi,
I have two data sets, that are sampled at same height (y axis) (see image) and I would like to obtain the data set in between by interpolation. I tried interp1 but it is not working for me. I used to do interplation to obtain points at different height in the same profile, but when I try to interpolate to abtain the data points in between 2 different profiles at the same heights, it is not working. Any help would be appreciated.

2 Kommentare
darova
am 13 Feb. 2021
Did you try to interpolate in X direction (horizontally)?
Please provide your code
Akzeptierte Antwort
Cris LaPierre
am 13 Feb. 2021
"when I try to interpolate to abtain the data points in between 2 different profiles at the same heights, it is not working"
If both data sets share the same Y value, then the result of interpolation is just going to be the average of their X values. No need to use interp for this. Just use mean.
9 Kommentare
Weitere Antworten (0)
Siehe auch
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!