print string matlab code example
Example 1: print in matlab
disp("this")
# or
fprint("this")
Example 2: print a text in matlab
disp('Text')
Example 3: 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);