Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Pramodya Wijesinghe
Pramodya Wijesinghe le 7 Sep 2017

Réponse acceptée

Jose Marques
Jose Marques le 9 Sep 2017
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

Plus de réponses (0)

Catégories

En savoir plus sur Visual Exploration dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by