Subtract row from previous row
26 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
C Smyth
el 12 de Mzo. de 2018
Comentada: Farhan Mustafa
el 24 de Mayo de 2020
I have a column of data (n long) and I want to subtract each row from the previous. So x = 1 2 6 1 etc
and I want to subtract row 2 from row 1, then row 3 from row 2 ... etc. Ans = -1 -4 5 etc.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!