Given n, create a square matrix and with element (1,1) = 1, add 1 to each element for each horitizonal and vertical movement.
Example:
n = 2;
y = [1 2;
2 3];
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers41
Suggested Problems
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1329 Solvers
-
456 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
603 Solvers
-
Convert given decimal number to binary number.
2374 Solvers
-
2063 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!