Este código es un ejercicio de práctica en el se suman los elementos en diagonal de cualquier matriz
Cite As
Alexander Brunal (2026). Sumatoria de elementos diagonales de matriz (https://ch.mathworks.com/matlabcentral/fileexchange/57109-sumatoria-de-elementos-diagonales-de-matriz), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Optimization Tips and Tricks, SUM(A, col)
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
