How to find the difference between 2 consecutive rows of a matrix?

38 views (last 30 days)
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.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 26 Mar 2014
diff(A)
  3 Comments
Favour Akhetuamen
Favour Akhetuamen on 4 Apr 2020
Edited: Favour Akhetuamen on 4 Apr 2020
ev_data=readtable(table name)
diff(ev_data.[colum heading])

Sign in to comment.

More Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!