フィルターのクリア

Finding Annual Amplidute for each of multiple years

2 ビュー (過去 30 日間)
Robert
Robert 2016 年 6 月 22 日
回答済み: Andrei Bobrov 2016 年 6 月 22 日
I have 12 years of monthly temperature data (144 points). I want to find the annual amplitude, the max value minus the min value each year. This would be easy with only 1 years data but I can;t figure it out with multiple years.
The results should be 12 numbers, 1 amplitude per year.
Thanks in advance for any advice
  2 件のコメント
KSSV
KSSV 2016 年 6 月 22 日
When it is easy for 1 year data.....run the same code for each year for 12 times..you will get for each year..
Andrei Bobrov
Andrei Bobrov 2016 年 6 月 22 日
please attach file with your data

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

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2016 年 6 月 22 日
diff(reshape(yourdata,2,[]))'

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by