# Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English verison of the page.

# linebreak

Line break chart

linebreak(X)

## Arguments

 X X is a M -by-2 matrix or table. If X is a M -by-2 matrix, the first column contains date numbers and the second column is the asset price. If X is a table, the first column of the table contains the dates. The second column contains the asset price data. Dates can be either a serial date number, a date character vector, or a datetime array.

## Description

linebreak(X) plots asset price with respect to dates.

## Examples

collapse all

This example shows how to generate a line break chart for asset X that is an M-by-2 matrix of date numbers and asset prices.

X = [...

733299.00         41.99;...
733300.00         42.14;...
733303.00         41.93;...
733304.00         41.98;...
733305.00         41.75;...
733306.00         41.61;...
733307.00         42.29;...
733310.00         42.19;...
733311.00         41.82;...
733312.00         41.93;...
733313.00         41.81;...
733314.00         41.37;...
733317.00         41.17;...
733318.00         42.02]
X =

1.0e+05 *

7.3330    0.0004
7.3330    0.0004
7.3330    0.0004
7.3330    0.0004
7.3331    0.0004
7.3331    0.0004
7.3331    0.0004
7.3331    0.0004
7.3331    0.0004
7.3331    0.0004

linebreak(X)

This example shows how to use datetime input to generate a line break chart for asset X that is an M-by-2 matrix of date numbers and asset prices.

X = [...

733299.00         41.99;...
733300.00         42.14;...
733303.00         41.93;...
733304.00         41.98;...
733305.00         41.75;...
733306.00         41.61;...
733307.00         42.29;...
733310.00         42.19;...
733311.00         41.82;...
733312.00         41.93;...
733313.00         41.81;...
733314.00         41.37;...
733317.00         41.17;...
733318.00         42.02];

dates = datetime(X(:,1),'ConvertFrom','datenum','Locale','en_US');
data = X(:,2);
t=table(dates,data);
linebreak(t)