calculate the gradient at a point
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
bilal javed
le 17 Déc 2018
Modifié(e) : Walter Roberson
le 22 Déc 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?

0 commentaires
Réponse acceptée
Walter Roberson
le 17 Déc 2018
[gx(590,50), gy(590,50)]
7 commentaires
Walter Roberson
le 18 Déc 2018
Modifié(e) : Walter Roberson
le 22 Déc 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 .
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!