Timeseries plot for mean temperature

조회 수: 1 (최근 30일)
Clickme26
Clickme26 2022년 11월 17일
답변: Walter Roberson 2022년 11월 17일
이 질문에 Walter Roberson 님이 플래그를 지정함
Can someone help me make a timeseries for the mean monthly temperature?

답변 (1개)

Walter Roberson
Walter Roberson 2022년 11월 17일
dsT = reshape(dataStruct.', [], 1);
DT = datenum([dsT.Year], [dsT.Month], ones(1, numel(dsT)));
MM = [dst.Mean];
ts = timeseries(MM, DT);
However, it is not recommended that you do any further development in timeseries objects. It is recommended that you use timetable objects instead.
dsT = reshape(dataStruct.', [], 1);
DT = datetime([dsT.Year], [dsT.Month], ones(1, numel(dsT)));
MM = [dst.Mean];
TT = timetable(MM(:), 'VariableNames', {'MonthlyMean'}, 'RowTimes', DT(:));

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by