I think the test suite needs a tolerance based verification instead of using isequal.
The test suite has been updated so that all cases now test using a tolerance. This solution now passes.
Thank you Grant, though I was waiting to see if the author of the problem would reply or not
That is a fair point, Dyuman. I typically do wait but was feeling extra helpful that day...
count any radix?
Justify the character string in center with proportional fonts
arrangement of symbols
Is this triangle right-angled?
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