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

조회 수: 2 (최근 30일)
Gobert
Gobert 2016년 9월 29일
댓글: Gobert 2016년 9월 29일
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 ?

채택된 답변

Steven Lord
Steven Lord 2016년 9월 29일
Use the diag function.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by