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'."
Count from 0 to N^M in base N.
200 Solvers
56 Solvers
Matrix indexing with two vectors of indices
408 Solvers
Create a matrix X, where each column is a shifted copy of the vector v
116 Solvers
Did you say please? - Find one string within another without strfind or regexp/regexpi
29 Solvers