Interpolation of Vectors with different axes

30 views (last 30 days)
Anum
Anum on 17 Apr 2024 at 12:07
Moved: Voss on 17 Apr 2024 at 13:43
Hello,
I have two vectors of size [128 512] each. The x and y dimensions represent the range and angle values, respectively. The range axes is same for both the vectors but the angle axes is different. What would be the best way to interpolate these two vectors to obtain new set of angle values.
Best Regards

Answers (1)

Torsten
Torsten on 17 Apr 2024 at 12:15
Moved: Torsten on 17 Apr 2024 at 12:16
Why don't you interpolate both vectors separately (i.e. with two calls to interp2) ?
  1 Comment
Anum
Anum on 17 Apr 2024 at 12:35
Moved: Voss on 17 Apr 2024 at 13:43
I tried to interpolate both vectors seperately to the new grid with interp1 (as the range axes before/ after interpolation remains the same) but then I am left with two seperate interpolated vectors.
What I am looking to obtain is a new set of angle values formed by the interpolation of the angles from the two vectors (probably with interp2 but I am a bit stuck in how to implement it).

Sign in to comment.

Categories

Find more on Interpolation in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!