Built-in function diff - methodology
Afficher commentaires plus anciens
Hi,
What methodology is used in "diff"? Does it take forward or central differences, and what is the step? How can I check the source code?
Thanks in advance!
Réponse acceptée
Plus de réponses (2)
Jan
le 3 Avr 2012
0 votes
You cannot check the code of DIFF, because it is a built-in function. As Jonathan has said already, reading the doc will reveal the internal method. It is the difference of subsequent elements.
Dessislava Koleva
le 3 Avr 2012
0 votes
2 commentaires
Jan
le 3 Avr 2012
I guess you are looking for GRADIENT.
Dessislava Koleva
le 3 Avr 2012
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!