calculations or sum all diagonal elements
Ältere Kommentare anzeigen
hi. to sum all diagonal elements i used
sum(diag(a))
know; if i want to sum first 170 elements or last 80 elements, how can i do this.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Operating on Diagonal Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!