Test suite updated with additional test cases
I might be misunderstanding this problem, but I think the fourth and fifth tests have errors. The answer for the fourth should have a zero in the first position, not the second. The answer for the fifth test has no zeros at all.
@Chris, the question asks to make the points zero where the neighbourhood elements are opposite in sign.
@Duyman the question really should make that clearer --- it doesn't ask anything, it just gives a single example and leaves it to you to infer what you're supposed to do from that!
More test cases are needed for this.
Return a list sorted by number of occurrences
radius of a spherical planet
Is it an Armstrong number?
Create a two dimensional zero matrix
Sum of integers numbers
Find the treasures in MATLAB Central and discover how the community can help you!
Select a Web
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