subtract numbers in the row

1 次查看(过去 30 天)
Natalja
Natalja 2013-6-24
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
diff(x)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by