This problem is created to test an alternative Cody scoring system. It is based on the current one, but few changes are introduced. The main difference is that strings generate nearly same size as other arrays so '12345'-'0' won't be smaller than [1 2 3 4 5]. There is also improvement of scoring when ans is used.
Your goal is to write a function that for given n creates spiral matrix like in problem 944. You can choose one or more ways to do this:
Enjoy!
This problem is related to problems 944, 2033, 2390, ... and others which I don't remember now :-)
Test Suite fails.
" Error using evalin. Undefined function or variable 'score'."
3652 Solvers
747 Solvers
Create One Large Eye of size N x N Quickly?
70 Solvers
469 Solvers
Return the first and last character of a string
1659 Solvers