a couple of issues: 1) I believe you are missing the input 'm' to wrapnan in your testsuite; 2) some numerical precision issues arise in the last test (e.g. rem(.8,.5)-.3 returns ~.5e-17), perhaps you could just round to two decimals the output of wrapnan so that we do not have to?
I fixed it. Thank you for reminding me. You might submit a shorter solution now.
Test Suite is currently broken due to the undefined function 'roundn' for input arguments of type 'double'.
Error in Test3 (line 5)
Still not fixed yet...
@Lincoln Poon, It has been fixed now
Very ['ni' 'ce'] HAHAHA
Check to see if a Sudoku Puzzle is Solved
Increment a number, given its digits
Make an awesome ramp for a tiny motorcycle stuntman
Spot the rectangle (Part 2)
Number of digits in an integer
Wayfinding 4 - Crossing, level 2
Convert a substructure reference string into a valid definition structure for subsref and subsasgn
Insert certain elements into a vector.
Robust alignment of coordinate system
Create incremental spiral WITHOUT USING EVAL or FEVAL
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