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