what is command for circularly writing a row matrix in matlab
Mostrar comentarios más antiguos
example: let
a=[1 2 3 4 5]
i want output like
b=[ 1 2 3 4 5;
5 1 2 3 4;
4 5 1 2 3;
3 4 5 1 2;
2 3 4 5 1]
please help me
Respuesta aceptada
Más respuestas (1)
Steven Lord
el 2 de Sept. de 2015
gallery('circul', 1:5)
1 comentario
Stephen23
el 4 de Sept. de 2015
Neat, but slow!
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!