% % changeUnit_main % %x=10; %units='in'; x=input('Give the unit value: '); units=input('Give the unit name (betwenn inverted commas: '); y=changeUnit2cm(x,units); y disp([num2str(y) ' cm']);