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)
assert(isequaln(roundn(y,2),roundn(y_correct,2)))
ugly.
Very ['ni' 'ce'] HAHAHA
Create a function handle that reverses the input arguments of another function handle
124 Solvers
Create a square matrix of multiples
383 Solvers
Split a string into chunks of specified length
477 Solvers
489 Solvers
Compute hamming distance between two binary vectors represented using lists of 1-byte numbers
32 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!