How to find the difference between 2 consecutive rows of a matrix?
40 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Azzi Abdelmalek
2014-3-26
diff(A)
3 个评论
Favour Akhetuamen
2020-4-4
编辑:Favour Akhetuamen
2020-4-4
ev_data=readtable(table name)
diff(ev_data.[colum heading])
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!