calculations or sum all diagonal elements
古いコメントを表示
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.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Operating on Diagonal Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!