Problem 2620. Determine the Anti-diagonal of a Magic Square

Determine the anti-diagonal (crossing from top right to lower left) of a magic square of size n.

Examples

If n = 3

 y = 6 5 4

If n = 4

 y = 13 10 7 4

Solution Stats

40.5% Correct | 59.5% Incorrect
Last Solution submitted on Nov 06, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers109

Suggested Problems

More from this Author1

Problem Tags

Community Treasure Hunt

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

Start Hunting!