i need to convert data from hourly data to daily data and plot these data

조회 수: 3 (최근 30일)
hassan elkholy
hassan elkholy 2020년 9월 26일
답변: Peter O 2020년 9월 26일
i have hourly data in an excel sheet for a year and these data per hour but i need to plot it per day, how to do this please
these data until 8/25/2020

답변 (1개)

Peter O
Peter O 2020년 9월 26일
  1. Import using a timetable. https://www.mathworks.com/help/matlab/timetables.html
  2. Decide how you want to decimate the data in column C. Does it make sense to take the average of the day? Or to only use the data at 8:00 am from each day? https://www.mathworks.com/help/matlab/matlab_prog/resample-and-aggregate-data-in-timetable.html
  3. Use either plot(mytimetable.MyTimes, mytimetable.MyVariable), or stackedplot(mytimetable) to get the plot.

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by