Define start and end dates when selecting from file

조회 수: 1 (최근 30일)
Megan Mirkhanian
Megan Mirkhanian 2019년 12월 2일
답변: Sean de Wolski 2019년 12월 2일
%%% define the start and end dates for your data in YearMonthDay formant,
% i.e, "October 1, 1982" should be formatted as "19821001", Time frames: 2021-2040, 2041-2060, and 2081-2100
date_start= "20211001";
date_end = "20400930";
It says that I have an invalid character for the quotation marks.
I need the dates from year=2021 month= 10 day= 01
to year=2040 month=09 day=30

답변 (1개)

Sean de Wolski
Sean de Wolski 2019년 12월 2일
Look at creating a timetable and then using timerange to index into it.
doc timetable
doc timerange

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by