Filter löschen
Filter löschen

Finding Annual Amplidute for each of multiple years

1 Ansicht (letzte 30 Tage)
Robert
Robert am 22 Jun. 2016
Beantwortet: Andrei Bobrov am 22 Jun. 2016
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 Kommentare
KSSV
KSSV am 22 Jun. 2016
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 am 22 Jun. 2016
please attach file with your data

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Andrei Bobrov
Andrei Bobrov am 22 Jun. 2016
diff(reshape(yourdata,2,[]))'

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by