Cody

Solution 232049

Submitted on 18 Apr 2013
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% assert(numCmp('12.3456',12.3456))
ans = 1
2   Fail
%% assert(numCmp('12.3456',12.3456789))
Error: Assertion failed.
3   Fail
%% assert(~numCmp('12.3456',12.345))
Error: Matrix dimensions must agree.
4   Fail
%% assert(~numCmp('12.34567890',12.3456))
Error: Matrix dimensions must agree.
5   Fail
%% assert(numCmp('12e6',12e6))
Error: Matrix dimensions must agree.
6   Fail
%% assert(~numCmp('54',100))
Error: Matrix dimensions must agree.