how do i print this matrix?
Mostrar comentarios más antiguos
hi!
i want to print this matrix..
i think there is a easy pattern in this matrix but i couldn't found..!
Is there a easy way to create this matrix?

Respuesta aceptada
Más respuestas (1)
M = repelem([1,1;1,0;0,1],[1,2,3],[3,2])
Categorías
Más información sobre Shifting and Sorting 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!