From: Fivos on
Hi,

I have a 3D matrix where Z depends on X Y .

I use this code to generate my surface :

F = TriScatteredInterp(x,y,z);
Z= F(X,Y);
h=surf(X,Y,Z,'FaceColor','interp','FaceAlpha',0.8);

Using the cursormode i can press anywhere on the surface and get the interpolated values for any given point that wasn't initially in my matrix. Is there a way to specify Z programmatically and get X & Y ? We know that all values of Z are unique so to each Z value corresponds only one combination of X & Y

thanks in advance