FUNCTION REFERENCE

xline

Draw vertical constant line(s) at x.

Draw vertical constant line(s) at x.

Syntax

h = xline(x)

Syntax

h = xline(x, linespec)

Syntax

h = xline(x, linespec, label)

Syntax

h = xline(ax, ..., Name, Value)

Draws one ConstantLine per value in x, spanning the axes from bottom to top. Supports Color, LineStyle, LineWidth, Alpha, Label, LabelHorizontalAlignment and LabelVerticalAlignment.

Example

h = xline(2); h.Value   % 2

Differences from MATLAB: Not checked against MATLAB yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.