disp
Display the value of a variable without printing its name.
Syntax
Section titled “Syntax”disp(X)Description
Section titled “Description”Prints the value of X to the command window. Unlike automatic display (a statement without trailing semicolon), disp doesn’t print the variable name as a prefix — useful for cleaner output when the name isn’t meaningful.
Works for any value type: numeric arrays, strings, cell arrays, structs, etc.
Examples
Section titled “Examples”disp('Hello, world!')disp(magic(3))