How to extract values from specific coordinates

18 views (last 30 days)
Dear forum,
I have a plane defined by (X,Y) coordinate points on which I interpolated a scalar, as you can see in the figure attached. How may I export the scalar only for some given (X,Y) pairs? For example X = [ -0.05 0 0.05]' , Y = [ 0.01 0.025 0.05]' and I want to get the scalar in (-0.05,0.01), (0,0.025) and (0.05,0.05).
Regards,
Robert

Accepted Answer

Matt J
Matt J on 30 Dec 2021
Edited: Matt J on 30 Dec 2021
You can use interp2() or griddedInterpolant().
  5 Comments
MRobert
MRobert on 1 Jan 2022
Hello,
Sorry for the way of expressing. Indeed this is what I was looking for!
Thank you,
Regards,
Robert

Sign in to comment.

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!