Gradient computation

조회 수: 3 (최근 30일)
Adetunji
Adetunji 2012년 1월 21일
x =90 91 92 93 94 95 96 97 98 99 100
y=54 55 54 54 57 57 63 56 57 56 56
am trying to compute the gradient of the above in matlab..any idea?
Comment on this Answer

채택된 답변

David Young
David Young 2012년 1월 21일
You could use gradient(y), provided that it's always the case that x increases linearly, as in your example.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by