Howe can I subtract neighboring numbers?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I got a matrix like this:
>> z=[1,2,3,4]
z =
1 2 3 4
How can I substract the neighboring numbers?
Like 2-1; 3-2; 4-3; etc.
And how can I divide every number by 60 ?
Like 1/60 2/60 etc
0 commentaires
Réponse acceptée
Andrei Bobrov
le 7 Juil 2019
diff(z)
z/60
5 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!