calculate the gradient at a point
조회 수: 11 (최근 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!