Question: Please use MATLAB An example of how the function works: dig= 'X' val = roman_digit(dig); disp(['The decimal equivalent of the Roman digit',dig,'is',num2str(val)]) Create a function

Please use MATLAB Please use MATLAB An example of how the function works: dig= 'X'
An example of how the function works:
dig= 'X'
val = roman_digit(dig);
disp(['The decimal equivalent of the Roman digit',dig,'is',num2str(val)])

Create a function called roman digit that takes a letter (lVXLCD. Or Mor the lowercase version of any of these and returns its decimal value. If the character is not one of those listed the function should return o. Function name: roman digit Input argument: a single character representing a Roman digit. May be either upper or lower case Output argumenta scalar Integer value, the decimal value of the Roman digit Reminder of the weights of Roman digits: 1, V5, X 10, L50, 100, D 500, M = 1000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!