Determine daily derivative of time series data
Ältere Kommentare anzeigen
I have a timeseries of oxygen (DO) data collected at 5 minute intervals. I want to calculate the daily derivate of oxygen (so 288 data points in each derivative). I know how to calculate the derivative over time dDO/dt but I'm not sure how to use the diff function (is that what I should be using) to calculate a daily value instead of the derivative over each 5-minute interval. I'm sorry if this is a dumb question. My ultimate goal is to plot the daily derivative of oxgyen (DO) against irradiance data to see if light drives the amount of oxygen produced.
I have attached a mat file of time (MX), oxygen (DO) and light (irradiance)
2 Kommentare
Stephan
am 6 Okt. 2019
There is a problem in your data:
>> load('do_deriv.mat')
>> sum(isnan(DO))
ans =
30342
DO contains many NaN values.
Heidi Hirsh
am 6 Okt. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Structures finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
