SUM(A, col)
This function eases the transition to MATLAB for Excel users. The function will add all elements in a column through the function call:
x = SUM(A, col);
where A is an array and col is the column over which the user would like to add all elements. This format works similarly to the Excel "sum()" function and will ideally prove useful to beginning MATLAB users.
Citar como
Carson (2024). SUM(A, col) (https://www.mathworks.com/matlabcentral/fileexchange/31337-sum-a-col), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Mathematics >
- MATLAB > Language Fundamentals > Data Types > Numeric Types >
- MATLAB > Language Fundamentals > Matrices and Arrays > Creating and Concatenating Matrices >
- MATLAB > Language Fundamentals > Matrices and Arrays > Matrix Indexing >
Etiquetas
Agradecimientos
Inspiración para: Sumatoria de elementos diagonales de matriz
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |