Timeseries plot for mean temperature
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Diese(r) Frage wurde durch Walter Roberson
markiert
Can someone help me make a timeseries for the mean monthly temperature?
0 Kommentare
Antworten (1)
Walter Roberson
am 17 Nov. 2022
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(:));
0 Kommentare
Siehe auch
Kategorien
Find more on Time Series Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!