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 Solvers291
Suggested Problems
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2536 Solvers
-
10722 Solvers
-
Longest run of consecutive numbers
6446 Solvers
-
560 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1720 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!