How to find the gradient of a curve at a specific point?

조회 수: 2 (최근 30일)
Pramodya Wijesinghe
Pramodya Wijesinghe 2017년 9월 7일
댓글: Pramodya Wijesinghe 2017년 9월 15일

채택된 답변

Jose Marques
Jose Marques 2017년 9월 9일
If the data is in the variable "data", you find the gradient like this:
grad = zeros(size(data))
for i=1:(size(data,2)-1)
grad(i) = data(i+1)-data(i);
end

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by