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

Problem 1821. 07 - Common functions and indexing 6

Created by Samuel Thrys√łe

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.

Tags

Problem Group

Solution Statistics

92 correct solutions 35 incorrect solutions
Last solution submitted on Dec 10, 2014