subtract numbers in the row

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....?

 採用された回答

Iain
Iain 2013 年 6 月 24 日

1 投票

diff(x)

1 件のコメント

Natalja
Natalja 2013 年 6 月 24 日
Thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2013 年 6 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by