How to integrate using Matlab 2012a?

1 view (last 30 days)
Hello,
How can I integrate using MATLAB 2012a? I wish to integrate precipitation over land so that I get an accumulation of precipitation with time.
I have seen the function 'int' but this is just for newer versions of MATLAB.
I have a 3d matrix x*y*t
thanks, Michael

Accepted Answer

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh on 29 Aug 2014
Edited: Salaheddin Hosseinzadeh on 29 Aug 2014
Hello Micheal,
First see if you can simply use sum instead of intergral. If not then chech the link below plz.
at the end of the page you can finde related similar functions that may also be helpful. Like if you don't have a function of your data and you need to do it numerically, for which you may check
doc trapz
doc cumsum
And so more.
Good Luck!

More Answers (0)

Community Treasure Hunt

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

Start Hunting!