Cody

Problem 1821. 07 - Common functions and indexing 6

Created by Samuel Thrysøe in Community

Create a variable m as a magic square with the size 6 x 6

Magic squares are defined as square matrices, where the sum of all rows and columns are equal.

(Hint: see help magic)

Replace all the numbers above or equal to 20 with zero.

Solution Stats

72.91% Correct | 27.09% Incorrect
Last solution submitted on Mar 08, 2019

Recent Solvers271

Suggested Problems

More from this Author26

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!