Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 113069

Submitted on 16 Jul 2012

Incorrect

253Size
Leading solution size is 100.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, log in.

Test Suite

Test
Code Input and Output
1
Fail
 
%%
assert(isequal(numeri_romani('+','I','I'),'II'))
Error: Output argument "y" (and maybe others) not assigned during call to "/users/msssytem8/numeri_romani.m>numeri_romani".
2
Fail
 
%%
assert(isequal(numeri_romani('-','X','I'),'IX'))
Error: Output argument "y" (and maybe others) not assigned during call to "/users/msssytem8/numeri_romani.m>numeri_romani".
3
Fail
 
%%
assert(isequal(numeri_romani('+',numeri_romani('*','XXV','XX'),numeri_romani('+','IV','V')),'DIX'))
Error: Output argument "y" (and maybe others) not assigned during call to "/users/msssytem8/numeri_romani.m>numeri_romani".