Cody

Solution 2113339

Submitted on 1 Feb 2020
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   Fail
assert(isequal(ord(1),'1st'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test1 (line 1) assert(isequal(ord(1),'1st'))

2   Fail
assert(isequal(ord(2),'2nd'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test2 (line 1) assert(isequal(ord(2),'2nd'))

3   Fail
assert(isequal(ord(3),'3rd'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test3 (line 1) assert(isequal(ord(3),'3rd'))

4   Fail
assert(isequal(ord(4),'4th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test4 (line 1) assert(isequal(ord(4),'4th'))

5   Fail
assert(isequal(ord(5),'5th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test5 (line 1) assert(isequal(ord(5),'5th'))

6   Fail
assert(isequal(ord(10),'10th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test6 (line 1) assert(isequal(ord(10),'10th'))

7   Fail
assert(isequal(ord(11),'11th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test7 (line 1) assert(isequal(ord(11),'11th'))

8   Fail
assert(isequal(ord(12),'12th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test8 (line 1) assert(isequal(ord(12),'12th'))

9   Fail
assert(isequal(ord(13),'13th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test9 (line 1) assert(isequal(ord(13),'13th'))

10   Fail
assert(isequal(ord(14),'14th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test10 (line 1) assert(isequal(ord(14),'14th'))

11   Fail
assert(isequal(ord(15),'15th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test11 (line 1) assert(isequal(ord(15),'15th'))

12   Fail
assert(isequal(ord(82),'82nd'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test12 (line 1) assert(isequal(ord(82),'82nd'))

13   Fail
assert(isequal(ord(126),'126th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test13 (line 1) assert(isequal(ord(126),'126th'))

14   Fail
assert(isequal(ord(911),'911th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test14 (line 1) assert(isequal(ord(911),'911th'))

15   Fail
assert(isequal(ord(2012),'2012th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test15 (line 1) assert(isequal(ord(2012),'2012th'))

16   Fail
assert(isequal(ord(4077),'4077th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test16 (line 1) assert(isequal(ord(4077),'4077th'))

17   Fail
assert(isequal(ord(0),'0th'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test17 (line 1) assert(isequal(ord(0),'0th'))

18   Fail
assert(isequal(ord(-101),'-101st'))

Undefined function 'iptnum2ordinal' for input arguments of type 'double'. Error in ord (line 2) total = iptnum2ordinal(n); Error in Test18 (line 1) assert(isequal(ord(-101),'-101st'))

Suggested Problems

More from this Author10