Finding contour level for given x,y coordinate
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
mukesh bisht
el 23 de Ag. de 2021
Respondida: DGM
el 23 de Ag. de 2021
Hi, I have a contour plot of velocity field. Now, I want to obtain velocity value from the contour plot for any given [X,Y] coordinate. How can i obtain this? Please help
Attached contour plot (x axis horizontal)
0 comentarios
Respuesta aceptada
DGM
el 23 de Ag. de 2021
Well, you already have the velocity data, so this shouldn't depend on the plot at all.
You can interpolate something like this:
% x and y values can't directly be used as subscripts
x = -50:50;
y = x;
v = peaks(101);
querypoint = [12.3 -17.7] % query point does not need to be integer-valued
vint = interp2(x,y,v,querypoint(1),querypoint(2),'bilinear')
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Contour Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!