File Exchange

image thumbnail


version (1.48 KB) by Chad Greene
set date limits like they're x limits.

1 Download

Updated 20 Jan 2014

View License

DLIM sets xlim using date numbers or date strings as input.

dlim([dmin dmax]) sets the x limits for datenumbers dmin and dmax.
dlim(dmin,dmax) sets the x limits for datenumbers or datestrings dmin and dmax.

d = datenum('jan 1, 1990'):1:datenum('dec 31,2009');
y = 2*sin(t2/90)+rand(size(d));
dlim('may 5, 1997','june 20, 2004') % <-- The dlim function

In the example above, the dlim command could similarly be given by dlim([729515 732118]) or dlim(729515,732118).

Cite As

Chad Greene (2021). dlim (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired: cbdate

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!