All test suites wrongly defined. It should be assert(isequal(num,y_correct))
Why wrongly defined? I will fix it if you can told me what's wrong with the test cases. I saw already cody examples which combines several tests into one assert call. Sure I should call assert(isequal(num,num_correct)) instead of assert(isequal(num,length(y_correct))) but both versions should work (I have already fixed it).
The test cases should test for the correct length of the modified x vector and the correct contents!
I just modified the problem a little bit because functions like assignin seems not to be allowed in cody. It is not my preferred definition of the problem but the problem should be solvable in cody...
Remove any row in which a NaN appears
It dseon't mettar waht oedrr the lrettes in a wrod are.
Sum all integers from 1 to 2^n
Getting the row and column location from a matrix
What number has this problem?
Perl 4: unshift
Perl 2: pop
Perl 3: shift
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