I can't get it to read my solution (which passes the test when I try it on my own computer).
I also had the same problem
testsuite doesn't work since mid 2014.
Anyway, the smallest non-spiral solution there.
Interesting. I didn't know about 'anonymous functions' until Cody came to existence. It has already paid off.
Therefore, unfortunately, I could not implement an 'anonymous function' trap in this Problem. The next one will contain one.
I am curious about the next mtree-score-hack.
As usual, I am still impressed by your solution!
I do agree that 'str2func' may be used to wrap a long solution into a much shorter size. Using an anonymous function does not reduce size, however, and should nt be trapped. Same thing goes with 'regexp', which can be used to pass a multiline calculation as one command.
give nth decimal place of pi
Equidistant numbers containing certain value in an interval
Sum of first n terms of a harmonic progression
Return the first and last characters of a character array
Who is the smartest MATLAB programmer?
Remove element(s) from cell array
Wayfinding 2 - traversing
Order of things - 4
Wrap a vector, but insert NaN's at the wrap-positions.
Add a row of zeros on top of a matrix
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office