Dirunal Plots from Timetable data in Matlab

조회 수: 14 (최근 30일)
Roseline Thakur
Roseline Thakur 2021년 2월 10일
답변: Hari 2024년 9월 2일
Hi , I have a time table with rows of Time and gas concentratios (NOx and SO2). These are hourly concentrations from 25.06.2019- 18.08.2019, with the time format in the column as '25.06.2019 01:00:00".
Now I need to make one dirunal Plot for all NOx and SO2, for the enttire period.
How do I go about it. Thanks

답변 (1개)

Hari
Hari 2024년 9월 2일
Hi Roseline Thakur,
I understand that you have a timetable containing hourly gas concentration measurements (NOx and SO2) from June 25, 2019, to August 18, 2019 and you wanted to create a diurnal plot for both NOx and SO2 concentrations over the entire period, showcasing the daily variation in concentrations.
To create a diurnal plot for your data, you follow the below steps:
  1. Extract Hour of Day: Since you're interested in diurnal patterns, the first step is to extract the hour of the day from your timestamps. This will allow you to average the concentrations by the hour across all days.
  2. Group and Average Data by Hour: Next, you will need to group the data by the extracted hour and calculate the average concentration for each hour. This step is crucial for visualizing the diurnal pattern.
  3. Plotting: Use the averaged data to plot the diurnal patterns for NOx and SO2. You can use the "plot" function for this, setting the x-axis to the hours of the day and the y-axis to the average concentrations.
References for further exploration:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by