Cody

# Problem 2283. Convert a number to its Roman representation

Solution 873237

Submitted on 13 Apr 2016
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
x = 1; y_correct = 'I'; assert(isequal(your_fcn_name(x),y_correct))

Error using your_fcn_name (line 2) Undefined function 'num2roman' for input arguments of type 'double'.

2   Fail
x = 98; y_correct = 'XCVIII'; assert(isequal(your_fcn_name(x),y_correct))

Error using your_fcn_name (line 2) Undefined function 'num2roman' for input arguments of type 'double'.

3   Fail
x = 501; y_correct = 'DI'; assert(isequal(your_fcn_name(x),y_correct))

Error using your_fcn_name (line 2) Undefined function 'num2roman' for input arguments of type 'double'.

4   Fail
x = 867; y_correct = 'DCCCLXVII'; assert(isequal(your_fcn_name(x),y_correct))

Error using your_fcn_name (line 2) Undefined function 'num2roman' for input arguments of type 'double'.