How can I create create a matrix with a pattern?
Mostrar comentarios más antiguos
Hi,
I have a matrix S (4x12) like this:
S = [0 0 2 0 0 0 2 0 0 0 2 0;
0 0 0 2 0 0 0 2 0 0 0 2;
2 0 0 0 2 0 0 0 2 0 0 0;
0 2 0 0 0 2 0 0 0 2 0 0]
I need to create a matrix Z that is 4x27 and contains the original pattern from S in its first 12 columns and continues the pattern up to column 27.
Any help would be greatly appreciated.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Resizing and Reshaping Matrices 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!