dateseries(dateStar​t,dateEnd,varargin)

Versione 1.2.0.0 (9,8 KB) da Toby
% Generates a vector of dates over the interval [dateStart:dateEnd].
44 download
Aggiornato 7 mar 2017

Visualizza la licenza

% Generates a vector of dates over the interval [dateStart:dateEnd].
% Inputs dateStart, dateEnd can be strings (of format accepted by datenum() function), or Matlab serial dates.
% Output vector can be of two different types: cell array of strings, or Matlab serial dates.
%
% syntax: v = dateseries(dateStart,dateEnd)
% v = dateseries(dateStart,dateEnd,'parameter','value',...)
%
% optional parameters:
% Interval (string) - Interval between indeces of the output vector: 'daily', 'weekly', 'monthly', or 'quarterly'.
% Defaults to 'daily'.
% OutputType (string) - Data type of the output vector: 'string' or 'serial'
% Defaults to 'string'.
% OutputFormat (string) - Format of the output vector (for a cell array of strings).
% Should allow any format supported by datestr() function.
% Defaults to 'mm/dd/yyyy'.
% Day (string / integer) - Filters output vector to specified days: 'all' or 'weekdays' for 'daily, 'monthly', 'quarterly' intervals.
% Specific day of week 'Mon','Tue',etc for 'weekly' interval.
% Or numeric value for every nth day of 'daily' interval.
% Defaults to 'all'.
% DayInInterval (string / integer) - Filters ouptut vector to specified day
% in interval: 'start' or 'end', for 'monthly' and 'quarterly' intervals
% or numeric value for 'monthly' intervals (e.g. 15th of every month).
% Defaults to 'end'.
%

Cita come

Toby (2024). dateseries(dateStart,dateEnd,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/61921-dateseries-datestart-dateend-varargin), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2016b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Characters and Strings in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.2.0.0

Updated comments.

1.1.0.0

Updated comments.

1.0.0.0