Built-in function diff - methodology
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (2)
Jan
el 3 de Abr. de 2012
0 votos
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
el 3 de Abr. de 2012
0 votos
2 comentarios
Jan
el 3 de Abr. de 2012
I guess you are looking for GRADIENT.
Dessislava Koleva
el 3 de Abr. de 2012
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!