dateseries(dateStar​t,dateEnd,varargin)

버전 1.2.0.0 (9.8 KB) 작성자: Toby
% Generates a vector of dates over the interval [dateStart:dateEnd].
다운로드 수: 44
업데이트 날짜: 2017/3/7

라이선스 보기

% 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'.
%

인용 양식

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

MATLAB 릴리스 호환 정보
개발 환경: R2016b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

Updated comments.

1.1.0.0

Updated comments.

1.0.0.0