Day of Year to MATLAB date

버전 1.1.0.0 (1.68 KB) 작성자: Ashley
Converts a day of year number and a year to a date in MATLAB format
다운로드 수: 3.8K
업데이트 날짜: 2009/5/22

라이선스 보기

DOY2DATE.m will convert a vector of day of year numbers and years
and convert them to MATLAB date format.

Sample Call:
doyV = [54;200.4315];
yearV = [2009;2009];
[dateV] = doy2date(doyV,yearV);

Inputs:
doyV -> vector of day of year numbers (n x 1)
yearV -> vector of years (n x 1)

Outputs:
dateV -> vector of MATLAB dates (n x 1)

function [dateV] = doy2date(doyV,yearV)
z = zeros(length(yearV),5);
dv = horzcat(yearV,z);
dateV = doyV + datenum(dv);

인용 양식

Ashley (2024). Day of Year to MATLAB date (https://www.mathworks.com/matlabcentral/fileexchange/24235-day-of-year-to-matlab-date), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

fixed typo in title

1.0.0.0