Tried to change the diagonal elements of a magic square. Could not understand the error message.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Seetha Rama Raju Sanapala
il 28 Dic 2017
Modificato: Matt J
il 28 Dic 2017
a= magic(6), diag(a)=[1 0 2 0 3 4]
Error message that I got was "Subscripted assignment dimension mismatch".
Do not understand why this happened, when you can easily replace a column or row of the matrix with similar syntax.
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!