I have to make my variables inches and then convert to cm but I do not know how to make them show up as a defined unit of length at all.
%define the lengths
x=input ('Enter the lenth of side x: ')
y=input ('Enter the length of side y: ')
z=input ('Enter the length of side z: ')
s = (x+y+z)./2;
%this is the area
area = sqrt(s*(s-x)*(s-y)*(s-z));