I think the test suite is broken, I appear to only get x = [21,6;35,10] as the input and y is being displayed as a vector instead of the matrix that is returned. So either the return is being compared to an x that was not sent or y being a vector is causing the test cases to always fail.
Andrew, I just tried resubmitting my original solution, and the test suite was OK. What is the exact problem that you're having with the test suite when you submit your solution?
Test suite compares y to itself--should compare y to x.
Hah! Great catch. It's fixed now, but you still get a like for being so sneaky...
Find all elements less than 0 or greater than 10 and replace them with NaN
radius of a spherical planet
The Hitchhiker's Guide to MATLAB
Arrange Vector in descending order
Make a vector of prime numbers
That's some divisor you've got there...
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Why the heck are they blinking!?!?
Rolling maximums above a threshold
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