Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1990;
y_correct = 'MCMXC';
assert(isequal(dec2rom(x),y_correct))
|
2 | Pass |
x = 2008;
y_correct = 'MMVIII';
assert(isequal(dec2rom(x),y_correct))
|
3 | Pass |
x = 1666;
y_correct = 'MDCLXVI';
assert(isequal(dec2rom(x),y_correct))
|
4 | Pass |
x = 49;
y_correct = 'XLIX';
assert(isequal(dec2rom(x),y_correct))
|
5 | Pass |
x = 45;
y_correct = 'XLV';
assert(isequal(dec2rom(x),y_correct))
|
6 | Pass |
x = 0;
y_correct = '';
assert(isempty(dec2rom(x)))
|
Generate N equally spaced intervals between -L and L
563 Solvers
Change the sign of even index entries of the reversed vector
296 Solvers
376 Solvers
2099 Solvers
Check that number is whole number
1070 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!