MATLAB Integrate Data in MATLAB: Solving with FOR Loops

Click For Summary
MATLAB users are seeking ways to integrate data based solely on coordinates, noting challenges with accuracy when using FOR loops that approximate integration by summing rectangles. There is interest in finding built-in MATLAB commands or functions that can facilitate this process more effectively. Various numerical methods exist for integration, and users are encouraged to explore online resources for MATLAB functions tailored to numerical integration. Recommendations include searching for specific numerical integration functions that can be easily implemented in MATLAB. Accurate integration methods are essential for improving the reliability of results in data analysis.
TheFerruccio
Messages
216
Reaction score
0
I've been reading up in the help files on MATLAB for this one, but it's a bit tricky.

I have been able to solve it on my own by using a FOR loop, but it's not completely accurate as it's just adding up rectangles at the average between two values.

Here's the problem:

Does there exist a MATLAB command that can integrate something based on just coordinates?
 
Physics news on Phys.org
TheFerruccio said:
I've been reading up in the help files on MATLAB for this one, but it's a bit tricky.

I have been able to solve it on my own by using a FOR loop, but it's not completely accurate as it's just adding up rectangles at the average between two values.

Here's the problem:

Does there exist a MATLAB command that can integrate something based on just coordinates?

There are different numerical methods to achieve this.
http://numericalmethods.eng.usf.edu/mtl/gen/07int/index.html

Depends what you want to use. I don't know about the built in functions but it is easier to google for numerical integration MATLAB functions which can be used by your MATLAB file.
e.g.
http://web.cecs.pdx.edu/~gerry/nmm/mfiles/byChapter.html
Scroll down to Contents of integrate directory
 

Similar threads

Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K