Borrar filtros
Borrar filtros

Determing intermediate points in 3D mesh plot

1 visualización (últimos 30 días)
SUSHMA MB
SUSHMA MB el 15 de En. de 2015
Comentada: SUSHMA MB el 16 de En. de 2015
i have a series of x, and y points eg: x=1,2,3 and y=1,2,3 and i have z =[10,20,30;15,25,35;30,40,50] and i have plotted a mesh grid using these values as mesh(x,y,z); now how can i determine the value of 'z' for corresponding x=1.2 and y=2.7 coodinates

Respuesta aceptada

Alessandro Masullo
Alessandro Masullo el 15 de En. de 2015
If the points are on regular grid, you can use interp2:
interp2(x,y,z,x0,y0,'cubic')
Otherwise, you can scatteredInterpolant.
  1 comentario
SUSHMA MB
SUSHMA MB el 16 de En. de 2015
Thank you for the reply....but im not able to use scatteredInterpolant function. Its showing error as "Undefined function 'scatteredInterpolant' for input arguments of type 'double'."

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by