h = plot(ts)
h = plot(ax, ts)
h = plot(ts, lineSpec)
| Parameter | Description |
|---|---|
| ts | Input timeseries object. |
| ax | Optional target axes. |
| lineSpec | Optional line style or graphics arguments. |
| Parameter | Description |
|---|---|
| h | Graphics handle to the plotted line or stairs object. |
plot Plots sample time on the x-axis and timeseries data on the y-axis. Zero-order hold interpolation uses stair-step drawing.
f = figure();
ts = timeseries([1; 2; 3], [10; 11; 12], 'Name', 'speed');
h = plot(ts);
| Version | Description |
|---|---|
| 2.0.0 | initial version |