Determine the Anti-diagonal of a Magic Square - MATLAB Cody - MATLAB Central

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

Difficulty:Rate

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.78% Correct | 59.22% Incorrect
Last Solution submitted on Jan 20, 2025

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
14
6

Problem Recent Solvers111

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!
Go to top of page