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

74 Solutions

48 Solvers

Last Solution submitted on May 14, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers48

Suggested Problems

More from this Author1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!