why is my solution failing? it runs fine in a separate window of Matlab.
it looks like it is just the output isn't in the right format
i don't know why my "-1" is in a new line.
The error you are receiving has to do with the Cody server, not your function. Try it again (wait a few hours between attempts) until you no longer see the "temporary unavailability of MATLAB Service" error.
While evaluating the solution, the server encountered an error caused by temporary unavailability of MATLAB Service. Wait a few minutes for the MATLAB Service to return, and then rescore.
Sum of first n terms of a harmonic progression
Replicate elements in vectors
Return 'on' or 'off'
02 - Vector Variables 5
Make a half wave rectifier
Lights Out 2 - 5x5, 4 moves
Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays)
Divisible by 10
Lights Out 8 - 5x5, light-only solution? I
Lights Out 18 - 3x3, 3 moves
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