Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

plot (timeseries) - Plot time series

Syntax

plot(ts)
plot(tsc.tsname)
plot(function)

Description

plot(ts) plots the time-series data ts against time and interpolates values between samples by using either zero-order-hold ('zoh') or linear interpolation.

plot(tsc.tsname) plots the timeseries object tsname that is part of the tscollection tsc.

plot(function) accepts the modifiers used by the MATLAB plotting utility for numerical arrays. These modifiers can be specified as auxiliary inputs for modifying the appearance of the plot. See Examples below.

Remarks

Time-series events, when defined, are marked in the plot by a red circular marker.

When you resize a timeseries plot to be narrower, the x-axis ticks and labels are readjusted so that they do not overlap one another. Unlike plots of regular variables, this behavior cannot be overridden (for example, by setting the axes XTickMode to 'Auto').

Examples

plot(ts,'-r*') uses a regular line with the color red and marker '*' to render the plot.

plot(ts,'ko','MarkerSize',3) uses black circular markers of size 3 to render the plot.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS