Vector manipulation by changing order or numbers in a vector.
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Giuseppe
am 24 Mär. 2014
Kommentiert: Giuseppe
am 24 Mär. 2014
I have the vector
a = [4 5 7 8 9 10]
I would like to make a new vector with the second element first and the first element last. How could I do this? Also I would like the same manipulation to occur regardless if the numbers or amount of numbers change.
Thanks,
Akzeptierte Antwort
Azzi Abdelmalek
am 24 Mär. 2014
Bearbeitet: Azzi Abdelmalek
am 24 Mär. 2014
Edit
a = [4 5 7 8 9 10]
b=circshift(a,[0 -1])
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!