Subtracting matrices using a for loop

1 回表示 (過去 30 日間)
Kevin Kandola
Kevin Kandola 2019 年 6 月 17 日
回答済み: James Tursa 2019 年 6 月 17 日
I am currently working with data that is 149x149x60 (60 corresponds to each individual time step). The data is set up to be accumulated precipitation with total rainfall being the final timestep- initial timestep. I am trying to make a loop that can subtract each individual timestep from the previous timestep to give the precipitation total for each specific timestep. Any advice would be appreciated.
Thanks

回答 (1 件)

James Tursa
James Tursa 2019 年 6 月 17 日
diff(your_data,1,3)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by