Convert a Roman numeral to its decimal equivalent for first ten roman numerals?

 Accepted Answer

Is this homework? If so, tag it as homework. Why not just make a cell array of the first 10 Roman numerals, and then use ismember()? It's like 2 lines of code . Give it a try.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!