30-day running running mean to the detrended timeseries
Mostrar comentarios más antiguos
Dear Sir or Madam,
I hope you are well.
I have some houlry water level obersvations. First I needed to detrend them linearly which I did. Next step, I need to use a 30-day running mean to the detrended timeseries. I have figured out that I needed to use movmean function or smoothdata function to smooth the data using different windows, but I am not sure how to apply the 30-day running mean. Below is the code that I have been using. If someone could help me with that, I would much appreciate it. Also, I have attached my original data. Thank you.
Yours faithfully,
Ali
window=2;
MeanDetrendedData=smoothdata(DetrendedData,'movmean',window);
plot(DateNum,DitrendedData,DateNum,MeanDetrendedData)
datetick('x')
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Preprocessing 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!



