Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 'XIX';
y_correct = 19;
assert(isequal(roman(x),y_correct))
|
2 | Pass |
x = 'IV MMXII LIV';
y_correct = [4 2012 54];
assert(isequal(roman(x),y_correct))
|
3 | Pass |
x = 'MDCCCCX MCMIII MCMX';
y_correct = [1910 1903 1910];
assert(isequal(roman(x),y_correct))
|
4 | Pass |
x = 'MDCCCCLXXXXVIIII MCMXCIX MIM';
y_correct = [1999 1999 1999];
assert(isequal(roman(x),y_correct))
|
188 Solvers
17133 Solvers
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
140 Solvers
248 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
226 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!