The following Matlab project contains the source code and Matlab examples used for sum over each diagonal (or anti-diagonal) in a matrix .
Efficient and compact code for summing each diagonal (or anti-diagonal) in a matrix without using a for-loop.

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

## Project Files:

File Name | Size |
---|---|

license.txt | 1313 |

sumDiag.m | 1279 |