Integrating Expressions in MATLAB: Need Help!

  • Context: MATLAB 
  • Thread starter Thread starter p3dro0
  • Start date Start date
  • Tags Tags
    Integration Matlab
Click For Summary
SUMMARY

The discussion focuses on integrating expressions in MATLAB, specifically addressing difficulties encountered with the integration functions. The user attempted to use the obsolete quad function and the romberg method but did not achieve the desired results. It was suggested that the ode23 function could be a viable alternative, although the user struggled with its implementation. Additionally, it was noted that the integral function should be used instead of quad for better results.

PREREQUISITES
  • Familiarity with MATLAB programming
  • Understanding of numerical integration techniques
  • Knowledge of the ode23 function for solving differential equations
  • Experience with the integral function in MATLAB for numerical integration
NEXT STEPS
  • Learn how to implement the integral function in MATLAB for numerical integration
  • Explore the usage of the ode23 function for solving ordinary differential equations
  • Research the differences between quad and integral functions in MATLAB
  • Investigate common errors in MATLAB integration and their solutions
USEFUL FOR

MATLAB users, engineers, and researchers involved in numerical analysis and integration tasks who require effective methods for computing integrals in their projects.

p3dro0
Messages
1
Reaction score
0
hell, i have been trying to compute the integral of an expression in matlab, but when it comes to the integration part i can't get the right result. i tried the quad function, and one named romberg i found online. I have been told the ode23 function could work, but i can't figure out how to use it.

I've already created the function in MATLAB and tested it for some values, and they are correct, but when it comes to the integration part i can't get it right.

does anyone have some ideas on what can i do?

thanks
 
Physics news on Phys.org

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
6
Views
4K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K