Tried to change the diagonal elements of a magic square. Could not understand the error message.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Seetha Rama Raju Sanapala
am 28 Dez. 2017
Bearbeitet: Matt J
am 28 Dez. 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 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!