How to create an identity matrix with three identical rows each time
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
MICHEL PHILIPE LIOUSSIS
el 11 de Dic. de 2019
Respondida: Image Analyst
el 11 de Dic. de 2019
How to create an identity matrix (with let's say 6 columns) with three identical rows each time. Like this:
[ 1 0 0 0 0 0
1 0 0 0 0 0
1 0 0 0 0 0
0 1 0 0 0 0
0 1 0 0 0 0
0 1 0 0 0 0
0 0 1 0 0 0
0 0 1 0 0 0
0 0 1 0 0 0
0 0 0 1 0 0
0 0 0 1 0 0
0 0 0 1 0 0
0 0 0 0 1 0
0 0 0 0 1 0
0 0 0 0 1 0
0 0 0 0 0 1
0 0 0 0 0 1
0 0 0 0 0 1]
Thank you in advance.
0 comentarios
Respuestas (1)
Ver también
Categorías
Más información sobre Multidimensional Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!