MATLAB Answers

Subtracting matrices using a for loop

3 views (last 30 days)
Kevin Kandola
Kevin Kandola on 17 Jun 2019
Answered: James Tursa on 17 Jun 2019
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

  0 Comments

Sign in to comment.

Answers (1)

James Tursa
James Tursa on 17 Jun 2019
diff(your_data,1,3)

  0 Comments

Sign in to comment.