Scalar Matrix Manipulation - MATLAB Cody - MATLAB Central

Problem 44821. Scalar Matrix Manipulation

Difficulty:Rate

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

69.86% Correct | 30.14% Incorrect
Last Solution submitted on Dec 19, 2024

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers47

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!
Go to top of page