dlim

バージョン 1.0.0.0 (1.48 KB) 作成者: Chad Greene
set date limits like they're x limits.
ダウンロード: 402
更新 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 (2024). dlim (https://www.mathworks.com/matlabcentral/fileexchange/45121-dlim), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2012b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersOceanography and Hydrology についてさらに検索
タグ タグを追加
謝辞

ヒントを与えたファイル: cbdate

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0