{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HW5 - numeral value I 1 V 5 X 10 L 50 C 100 D 500 M 1000...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Math98 HW5 : due Oct. 6 Write a MATLAB function roman2num(s) that converts a Roman numeral 1 to number. The numeral is contained in the string s and is capitalized. You can assume that s is a valid input without checking it. The basic building blocks are as follows
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: numeral value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 Examples : >>roman2num(’II’) 2 >>roman2num(’XLIII’) 43 More examples - in the Wikipedia article. 1 Wikipedia...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online