I think you should change "assert(isequal(your_fcn_name(x),y_correct))
" to "assert(isequal(your_fcn_name(n),y_correct))"
I made the suggested change to the test suite and re-scored.
I believe there is some tricky code in the test suite that has to be overcome by hacking the Cody Scoring server, and execute a function your_fcn_name before it is even called. Or a mechanism to change all x's in n's.
Find all elements less than 0 or greater than 10 and replace them with NaN
We love vectorized solutions. Problem 1 : remove the row average.
The Answer to Life, the Universe, and Everything
Square root of a number
Find the Oldest Person in a Room
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