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

2 visualizaciones (últimos 30 días)
Gobert
Gobert el 29 de Sept. de 2016
Comentada: Gobert el 29 de Sept. de 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 ?

Respuesta aceptada

Steven Lord
Steven Lord el 29 de Sept. de 2016
Use the diag function.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by