Dear Matlab community,
For a project I would like to know the Z-values along a line in the contour plot. The line consists of multiple points, x,y coordinates, at which I would like to read the Z-value from the contour plot. In practice it maybe means that some points require an interpolation, because not all x,y-values are present as input.
Is there a function available which can be used to obtain the z-value for a certain x,y-coordinate in a contour plot? If not, do you maybe have an idea how I could obtain these values?