PlotDataDays
Aucune licence
PlotDataDays(x,y,VLINEON,TEST)
plots data excluding days with no values
If VLINEON is true, PlotDataDays will put a vertical line where the weekends and holidays (missing data) should be.
If TEST is true, it will plot before and after excluding empty days.
The function returns h, such that h.fig is the handle to the figure h.y is the handle to the y data h.x is the handle to the original x data (Scale) h.nx is the handle to the new x data (plotted) h.line is the handle to the line h.axis is the handle to the axis.
USAGE
y=rand(100,1).*2+100;
x=[today-12:.1:today-5.1,today-2.9:.1:today];
% THE NEW WAY
h1=PlotDataDays(x,y);
% THE OLD WAY
figure;
h2=plot(x,y);
datetick;
IT'S NOT FANCY BUT IT WORKS
Citation pour cette source
Michael Robbins (2026). PlotDataDays (https://fr.mathworks.com/matlabcentral/fileexchange/3305-plotdatadays), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
