Hi, can someone help me generate a square matrix with all its elements one, exept its diagonal? As the following
Afficher commentaires plus anciens
ans = 2 1 1 1 1 3 1 1 1 1 4 1 1 1 1 5
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Operating on Diagonal Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!