matrix column vectors, and its elements?

IF I have this column vectors,as example
A=[0;1;2;3;4;5;6;7;8;9;10];
how can rearrangement its like thas,
A=[5;6;7;8;9;10;0;1;2;3;4] to plot its again?
but my column vectors have length(32)with zero pading become(512)

 Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 10 Dez. 2013
Bearbeitet: Andrei Bobrov am 10 Dez. 2013

1 Stimme

circshift(A,size(A,1)/2+1)

3 Kommentare

Mary Jon
Mary Jon am 10 Dez. 2013
If I have matrix A 512 rows *8 column ,how can do circshift with this case?
Andrei Bobrov
Andrei Bobrov am 10 Dez. 2013
corrected
corrected what?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by