Creating a Matrix including ones on diagonal

How can I create a matrix with the most shortcut way such as:
1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1
Thank you

 Respuesta aceptada

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 20 de Nov. de 2016

Comentada:

el 20 de Nov. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by