calculate the gradient at a point

조회 수: 11 (최근 30일)
bilal javed
bilal javed 2018년 12월 17일
편집: Walter Roberson 2018년 12월 22일
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