If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers292
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2815 Solvers
-
Sum the elements in either diagonal of a square matrix
222 Solvers
-
Relative ratio of "1" in binary number
1626 Solvers
-
8089 Solvers
-
403 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!