When you assign 45*ft to d it is stored internally in SI units (in this case m). There is therefore no way to automatically get ft in the answer. Apart from that restriction, this will give you the string you want: concat("The maximum span is ",num2str(d/ft),"ft") Richard