How to receive the inverse of the diff(x) array calculation ?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
For example ,if x=[a,b,c,d] and diff(x)=[b-a,c-b,d-c],
is there any possible way for [a-b,b-c,c-d].
0 commentaires
Réponse acceptée
Torsten
le 15 Nov 2022
x = [4 6 9 13];
s1 = -diff(x)
s2 = [x(1)-x(2),x(2)-x(3),x(3)-x(4)]
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB 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!