Determing deviation from the mean(number of sigma) and plotting

2 ビュー (過去 30 日間)
Hamed Hedayatnia
Hamed Hedayatnia 2021 年 5 月 24 日
回答済み: Rishik Ramena 2021 年 5 月 31 日
Hello everybody
I have Rain and DI values for 40 years and I want to plot deviation of individual years from the mean similar to this plot. How can I determine deviation of each year from the mean based on number of siga(6 sigma). I have put the rain values in the attachment.
Thanks in advance

回答 (1 件)

Rishik Ramena
Rishik Ramena 2021 年 5 月 31 日
You can use the mean and std function to get the mean and standard deviation of your timeseries data. You can then use a formula like (data-mean)/standard deviation to get the deviation of your data in multiple of sigmas. Then use the plot function to plot the deviations along with the data.

カテゴリ

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

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by