function k = RN2Int(r)
% r is a string that represents a Roman numeral
% k is its value.

C = RomanNum;
k=1;
while ~strcmp(r,C{k})
k=k+1;
end