Gradient of a vector
Mostrar comentarios más antiguos
I have 3 vectors X(i,j);Y(i,j) and Z(i,j).Z is a function of x and y numerically. I want to plot the gradient of z with respect to x and y. Can anyone suggest me how to find the gradient in the above case? Thanks, -Bhaskar
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 28 de Ag. de 2013
0 votos
Wouldn't it be diff(Z) ./ sqrt(diff(X).^2 + diff(Y).^2) or something pretty similar to that?
1 comentario
Bhaskarjyoti
el 30 de Ag. de 2013
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!