채택된 답변

Akira Agata
Akira Agata 2018년 2월 23일

0 개 추천

Like this?
function numDay = year2days(year)
numDay = days(datetime(year,12,31)-datetime(year,1,1))+1;
end
The following is one example:
>> year2days(2000)
ans =
366

추가 답변 (1개)

Nurul Asyikin Zakaria
Nurul Asyikin Zakaria 2018년 2월 27일

0 개 추천

Thank you for the guide :)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by