Continious subtraction of a elements in an array
Ältere Kommentare anzeigen
Hello, I have a column matrix which looks like
A=[131,131.4,131.5.......]
I want to subtract the each element of the matrix with its previous value. can anyone help me how to do this?
Antworten (1)
James Tursa
am 7 Sep. 2016
result = diff(A);
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!