MATLAB: How to display units with the answer

display

prompt = 'Enter mass in pounds:';
x = input(prompt);
y = x*0.4536;
disp (y);
This is my current script and i want to have the answer display with 'kg' next to the answer and i cant figure out how to do it.

Best Answer

fprintf('%g kg\n', y)