title
Add title.
πŸ“Syntax
title(text)
title(ax, text)
title(..., propertyName, propertyValue)
go = title(...)
πŸ“₯Input Arguments
Parameter Description
text Text to display: character vector, string scalar, string array or cell array.
ax a scalar graphics object value: parent container, specified as a axes.
propertyName a scalar string or row vector character.
propertyValue a value.
πŸ“€Output Arguments
Parameter Description
go a graphics object: text type.
πŸ“„Description

title('text') adds the title to the current axes.

Visible property is inherited from the parent if not explicitly defined.

πŸ’‘Examples
f = figure();
x = linspace(-1, 1);
y = sin(2*pi*x);
plot(x, y);
title('Unicode γƒ‰γƒ©γ‚΄γƒ³γƒœγƒΌγƒ«Z(γ‚Όγƒƒγƒˆ)', 14);
Example illustration
πŸ”—See Also
textxlabel
πŸ•”Version History
Version Description
1.0.0 initial version
1.10.0 Visible property is inherited from the parent if not explicitly defined.
Edit this page on GitHub