Determine daily derivative of time series data
Mostrar comentarios más antiguos
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 comentarios
Stephan
el 6 de Oct. de 2019
There is a problem in your data:
>> load('do_deriv.mat')
>> sum(isnan(DO))
ans =
30342
DO contains many NaN values.
Heidi Hirsh
el 6 de Oct. de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Structures en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
