function [inchs,feets] = convertCM(cm)
feets = cm.*0.032808;
integ = floor(feets);
fract=feets-integ;
inchs = fract*12;
feets = round(feets);
inchs = round(inchs);
end
Hey guys I tried to combine this code to answer the question, but each time i run it .. it keeps telling me:
>> convertCM
Not enough input arguments.
Error in convertCM (line 2)
feets = cm.*0.032808;
Best Answer