calculate the gradient at a point

5 visualizaciones (últimos 30 días)
bilal javed
bilal javed el 17 de Dic. de 2018
Editada: Walter Roberson el 22 de Dic. de 2018
I have a situation something like this
potential gradient field f (400*600)
[gx, gy] = gradient(f);
I have to find gradient at a point say (590,50). How can I calculate it?Untitled.png

Respuesta aceptada

Walter Roberson
Walter Roberson el 17 de Dic. de 2018
[gx(590,50), gy(590,50)]
  7 comentarios
Walter Roberson
Walter Roberson el 18 de Dic. de 2018
Editada: Walter Roberson el 22 de Dic. de 2018
x is a column number .y is a row number . Column 590 row 50 is gx(50,590) because rows are listed first in MATLAB as I explained earlier .
bilal javed
bilal javed el 22 de Dic. de 2018
Thank you Walter Roberson, it really worked

Iniciar sesión para comentar.

Más respuestas (1)

Mark Sherstan
Mark Sherstan el 17 de Dic. de 2018
Refer to the post here.
  1 comentario
bilal javed
bilal javed el 17 de Dic. de 2018
Thank you!
but my case is little bit different, the matrix f has all numerical values

Iniciar sesión para comentar.

Categorías

Más información sobre Creating and Concatenating Matrices 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