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?

0 个评论
采纳的回答
Walter Roberson
2018-12-17
[gx(590,50), gy(590,50)]
7 个评论
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 .
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!