print string with variable matlab
fprintf('The highest point of the mountain is : %d feet.\n', hp); fprintf('The highest point of the mountain is : %.2f feet.\n', hp);
matlab print variable
disp(x)
Source: ch.mathworks.com
fprintf('The highest point of the mountain is : %d feet.\n', hp); fprintf('The highest point of the mountain is : %.2f feet.\n', hp);
disp(x)