Howe can I subtract neighboring numbers?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Max Behr
am 7 Jul. 2019
Kommentiert: Max Behr
am 7 Jul. 2019
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 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 7 Jul. 2019
diff(z)
z/60
5 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!