alternative to diff(X)

6 visualizaciones (últimos 30 días)
Mate 2u
Mate 2u el 26 de Abr. de 2012
Hi there, is there anyother 1 line method to diff(X), as diff is not supported in the gpu arrayfun!
Thanks

Respuesta aceptada

Honglei Chen
Honglei Chen el 26 de Abr. de 2012
x = 1:10;
x(2:end)-x(1:end-1)

Más respuestas (0)

Categorías

Más información sobre GPU Computing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by