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 Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by