dlim

版本 1.0.0.0 (1.5 KB) 作者: Chad Greene
set date limits like they're x limits.
402.0 次下载
更新时间 2014/1/20

查看许可证

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

SYNTAX:
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.

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

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

引用格式

Chad Greene (2026). dlim (https://ww2.mathworks.cn/matlabcentral/fileexchange/45121-dlim), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Oceanography and Hydrology 的更多信息
标签 添加标签
致谢

启发作品: cbdate

版本 已发布 发行说明
1.0.0.0