Hi, can someone help me generate a square matrix with all its elements one, exept its diagonal? As the following
Mostrar comentarios más antiguos
ans = 2 1 1 1 1 3 1 1 1 1 4 1 1 1 1 5
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Operating on Diagonal 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!