Cody

Problem 2283. Convert a number to its Roman representation

Solution 432045

Submitted on 15 Apr 2014
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: Output argument "y" (and maybe others) not assigned during call to "/users/msssytem8/your_fcn_name.m>your_fcn_name".

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

Error: Output argument "y" (and maybe others) not assigned during call to "/users/msssytem8/your_fcn_name.m>your_fcn_name".

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

Error: Output argument "y" (and maybe others) not assigned during call to "/users/msssytem8/your_fcn_name.m>your_fcn_name".

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

Error: Output argument "y" (and maybe others) not assigned during call to "/users/msssytem8/your_fcn_name.m>your_fcn_name".