calculate the gradient at a point
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
bilal javed
am 17 Dez. 2018
Bearbeitet: Walter Roberson
am 22 Dez. 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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 17 Dez. 2018
[gx(590,50), gy(590,50)]
7 Kommentare
Walter Roberson
am 18 Dez. 2018
Bearbeitet: Walter Roberson
am 22 Dez. 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 .
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!