Linearly detrended and a 30-day running mean

2 ビュー (過去 30 日間)
Ali Saremi
Ali Saremi 2021 年 5 月 5 日
編集済み: Ali Saremi 2021 年 5 月 17 日
Dear Sir/Madam,
I hope you are well.
I have a dataset consisiting of water level observations.
The dataset needs to be linearly detrended first. Afterwards, the seasonal and interannual variability components need to be drived by applying a 30-day running mean to the detrended time series.
I was wondering if anyone could help me with this. Thank you and I look forward to hearing from you.
Kind regards,
Ali

採用された回答

Steven Lord
Steven Lord 2021 年 5 月 5 日
See the detrend and movmean functions.
  1 件のコメント
Ali Saremi
Ali Saremi 2021 年 5 月 17 日
編集済み: Ali Saremi 2021 年 5 月 17 日
Hi Steven,
Thank for your reply. I did import my data into MATLAB and I was able to detrend the data column and plot it. but when I wanted to display a fit on the figure (linear) through Tools/linear, the option was off becasue of using datetime (i think) in the plot, so I had to plot the detrend values solely to fit a linear line in the detrended plot. I was wondering if you could help me with that. In my plot i want the date and detrend values while i could be able to display fits on figure.
Thank you and I look forward to hearing from you.
Kind regards,
Ali

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by