Continious subtraction of a elements in an array
古いコメントを表示
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?
回答 (1 件)
James Tursa
2016 年 9 月 7 日
result = diff(A);
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!