Hi, can someone help me generate a square matrix with all its elements one, exept its diagonal? As the following
Mostra commenti meno recenti
ans = 2 1 1 1 1 3 1 1 1 1 4 1 1 1 1 5
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Operating on Diagonal Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!