Question: Problem 2 O solutions submitted (max: Unlimited) Create a function called roman_digit that takes a letter (L VXLCD o M or the lowercase version of
Problem 2 O solutions submitted (max: Unlimited) Create a function called roman_digit that takes a letter (L VXLCD o M or the lowercase version of any of these and returns its decimal value of the character is not one of those listed the function should return Function name roman_digit Input argument a single character representing a Roman digit. May be either upper or lower case Output argument a scalar integer value the decimal value of the Roman digit Reminder of the weights of Roman digits: 1 = 1, V = 5 X = 10. L = 50, C = 100, D = 500, M = 1000 Function 1 Put your function definition here Code to call your function 1 An example of how the function works: 3 dig 4 val roman_digitidis); 5 disp(['The decimal equivalent of the Roman digit ,dig, is ', numstr(val)])
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
