How to find the difference between 2 consecutive rows of a matrix?
38 views (last 30 days)
Show older comments
Hello all,
I have a (165475 x 2) matrix and I would like to find the difference between any two consecutive rows and store them in a new matrix. Can anybody help me? Thanks.
0 Comments
Accepted Answer
Azzi Abdelmalek
on 26 Mar 2014
diff(A)
3 Comments
Favour Akhetuamen
on 4 Apr 2020
Edited: Favour Akhetuamen
on 4 Apr 2020
ev_data=readtable(table name)
diff(ev_data.[colum heading])
More Answers (0)
See Also
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!