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

2 vues (au cours des 30 derniers jours)
Gobert
Gobert le 29 Sep 2016
Commenté : Gobert le 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 ?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by