Be the first to rate this file! 83 downloads (last 30 days) File Size: 2.3 KB File ID: #20625

Shaded time series

by Carl Fischer

 

09 Jul 2008 (Updated 23 Sep 2009)

Code covered by BSD License  

Plot time series one above the other with coloured strips highlighting interesting features.

Download Now | Watch this File

File Information
Description

Use this function to plot several time series aligned beneath each other with shaded blocks highlighting important sections.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
ShadePlotForEmphasis

MATLAB release MATLAB 7.6 (R2008a)
Zip File Content  
Other Files license.txt,
shadedTimeSeries.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
22 Jul 2009 Shlomi

if the indicator is a row vector the function doesn't work properly. I added the simple command of indicator = indicator(:); in my code. You should add it too

23 Sep 2009 Carl Fischer

Thanks for the suggestion Shlomi. I've submitted an update but I also added some extra sanity checks to ensure sizes are consistent.

Please login to add a comment or rating.
Updates
23 Sep 2009

Allow data in rows or columns. Extra sanity checks on data lengths.

23 Sep 2009

Fixed bug that occurred when X was a row vector.

Tag Activity for this File
Tag Applied By Date/Time
annotation Carl Fischer 22 Oct 2008 10:09:33
customization Carl Fischer 22 Oct 2008 10:09:33
highlight Carl Fischer 22 Oct 2008 10:09:34
graphics Carl Fischer 22 Oct 2008 10:09:34
subplots Carl Fischer 22 Oct 2008 10:09:34
time Carl Fischer 22 Oct 2008 10:09:34
shading Gautam Vallabha 17 Jun 2009 11:15:23
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com