Output Statements: disp and fprintf:
The Output statements display strings and the answers of expressions and can permit for formatting or customizing how they are exhibited. The simplest output function in a MATLAB is disp that is used to display the result of an expression or a string without assigning any value to the default variable ans. Though, disp does not allow the formatting.