Subtraction of alternate cells in an array
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Sandeep Nair
am 28 Apr. 2021
Kommentiert: Matt J
am 28 Apr. 2021
I have an array of lets say A=[ 1 2 3 4 5 6 7 8 9 10]' and now i want to do a subtraction of the numbers by leaving once cell in btw like [3-1 4-2 5-3 6-4 7-5 8-6 9-7 10-8]
I can do this in loop but i dont know how to do it with matlabs powerful vectorisation operations
1 Kommentar
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Types 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!