how to print a string in matlab code example Example 1: print in matlab disp("this") # or fprint("this") Example 2: print a text in matlab disp('Text')