How to find the difference between 2 consecutive rows of a matrix?
40 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mnr
le 26 Mar 2014
Modifié(e) : Favour Akhetuamen
le 4 Avr 2020
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 commentaires
Réponse acceptée
Azzi Abdelmalek
le 26 Mar 2014
diff(A)
3 commentaires
Favour Akhetuamen
le 4 Avr 2020
Modifié(e) : Favour Akhetuamen
le 4 Avr 2020
ev_data=readtable(table name)
diff(ev_data.[colum heading])
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Tables dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!