Hi Jared. If you're going to make problems that have approximate floating point answers (often the case with conversions), you need to allow for some variation in your test suite. ISEQUAL is not a good test in these cases. Instead, maybe use ABS(answer-correct) < tolerance.
Return the 3n+1 sequence for n
6205 Solvers
1912 Solvers
Set the array elements whose value is 13 to 0
955 Solvers
Replace multiples of 5 with NaN
360 Solvers
268 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!