dlim

set date limits like they're x limits.
402 téléchargements
Mise à jour 20 jan. 2014

Afficher la licence

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).

Citation pour cette source

Chad Greene (2025). dlim (https://fr.mathworks.com/matlabcentral/fileexchange/45121-dlim), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2012b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Oceanography and Hydrology dans Help Center et MATLAB Answers
Remerciements

A inspiré : cbdate

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0