subtract numbers in the row

1 Ansicht (letzte 30 Tage)
Natalja
Natalja am 24 Jun. 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....?

Akzeptierte Antwort

Iain
Iain am 24 Jun. 2013
diff(x)

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by