Interpolate pairs of values from matrix
Show older comments
I have a coarse 2D-matrix with [X,Y,Z]-values.
I want to input a Z-value and would like to interpolate possible values for the [X,Y]-pairs. These [X,Y]-pairs are then used for a fit. This means that for a given value of Z, if I choose any X value, Y can be calcualted and the other way arround.
I have tried the interp2 already, but it seems that I can only input X and Y values to get the interpolated Z value and not the other way around, where I input a Z-value and get a list of [X,Y]-pairs for that.
All the best
Chris
3 Comments
Rik
on 3 Oct 2024
So essentially you want to find the coordinates on a fine sample grid where Z is close to some target value?
Can you provide example data? that will make it easier to play around with a realistic example.
Chris Pruefert
on 11 Oct 2024
Chris Pruefert
on 11 Oct 2024
Accepted Answer
More Answers (0)
Categories
Find more on Particle & Nuclear Physics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

