calculate the gradient at a point

13 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2018-12-17
[gx(590,50), gy(590,50)]
  7 个评论
Walter Roberson
Walter Roberson 2018-12-18
编辑:Walter Roberson 2018-12-22
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 2018-12-22
Thank you Walter Roberson, it really worked

请先登录,再进行评论。

更多回答(1 个)

Mark Sherstan
Mark Sherstan 2018-12-17
Refer to the post here.
  1 个评论
bilal javed
bilal javed 2018-12-17
Thank you!
but my case is little bit different, the matrix f has all numerical values

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by