Cody

Problem 44821. Scalar Matrix Manipulation

Created by Rafi Ahmed in Community

Assume, input x is a scalar matrix such as,

x =
       2     0     0
       0     2     0
       0     0     2

then the output matrix will be,

y =
       0     2     2
       2     0     2
       2     2     0

Solution Stats

63.64% Correct | 36.36% Incorrect
Last solution submitted on Feb 08, 2019

Recent Solvers13

Suggested Problems

More from this Author1

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!