Discover MakerZone

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

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!

Problem 2429. Square Diagonal

Created by Pruthvi teja

If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

Tags

Problem Group

Solution Statistics

79 correct solutions 52 incorrect solutions
Last solution submitted on Jun 17, 2016

Problem Comments