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.29% Correct | 59.71% Incorrect
Last Solution submitted on Nov 16, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers108

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!