subtract numbers in the row

1 visualización (últimos 30 días)
Natalja
Natalja el 24 de Jun. de 2013
I have a row of different numbers like x=[12; 15; 19; 29; 37; 58...] how can I better subtract one number from the other like 15-12, 19-15, 29-19....?

Respuesta aceptada

Iain
Iain el 24 de Jun. de 2013
diff(x)

Más respuestas (0)

Categorías

Más información sobre MATLAB 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