Write a function that will return same output as diag(spiral(n)). The only exception is that spiral and diag functions are not allowed in your function. Also, loops are not allowed.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers118
Suggested Problems
-
Maximum running product for a string of numbers
2258 Solvers
-
1845 Solvers
-
Set the array elements whose value is 13 to 0
1458 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14342 Solvers
-
Remove entire row and column in the matrix containing the input values
576 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!