Timeseries plot for mean temperature

3 次查看(过去 30 天)
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