Sum of array elements at 45° degree oblique dimension in Matlab

2 Ansichten (letzte 30 Tage)
Gobert
Gobert am 29 Sep. 2016
Kommentiert: Gobert am 29 Sep. 2016
Hello everyone!
I need your help!
Can anyone tell me how to find the sums (in red) of magic(3) array elements at 45° degree oblique dimension in Matlab as shown in the following figure ?

Akzeptierte Antwort

Steven Lord
Steven Lord am 29 Sep. 2016
Use the diag function.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by