title

Add title.

Syntax

  • title(text)

  • title(ax, text)

  • title(..., propertyName, propertyValue)

  • go = title(...)

Input argument

  • 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 argument

  • go - a graphics object: text type.

Description

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

Example

f = figure();
x = linspace(-1, 1);
y = sin(2*pi*x);
plot(x, y);
title('Unicode ドラゴンボールZ(ゼット)', 14);

See also

text, xlabel.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated