disp

Display a variable.

📝 Syntax

  • disp(V)

📥 Input argument

  • V - a variable

📄 Description

disp(V) displays the value of the variable V.

disp uses current format setting to display numeric values.

💡 Examples

disp('Hello Nelson')
disp(pi)
disp(eye(3, 3))

disp always ends with a newline.

disp('')

🔗 See also

display, fprintf, format.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?