How to retrieve z value from surf plot given x and y?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kyle Gao
el 19 de Sept. de 2018
Comentada: Kyle Gao
el 19 de Sept. de 2018
I got a surface useing:
s= surf(X, Y, Z)
Since the X, Y, and Z are discrete, I want to get the consecutive value of Z. For example, the origin data X and Y are all integers, and I don't the relationship between XY and Z, I want to get the z value where X = 1.87 and Y = 2.9. Is it possible? What should I do?
0 comentarios
Respuesta aceptada
Cedric
el 19 de Sept. de 2018
Editada: Cedric
el 19 de Sept. de 2018
where Xq and Yq are defined using the values given in your question.
3 comentarios
Cedric
el 19 de Sept. de 2018
Unless I misunderstand your question, you can just set
Xq = 1.87 ;
Yq = 2.9 ;
and have Zq with
Zq = interp2( X, Y, Z, Xq, Yq ) ;
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!